Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

feat: Add interaction_tree to Client and Extension #640

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Conversation

zevaryx
Copy link
Contributor

@zevaryx zevaryx commented Sep 10, 2022

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

This adds a new property interaction_tree to both Client and Extension, allowing for a well-organized tree of interactions

The below shows the tree from my bot JARVIS (any empty space after a colon is a SlashCommand object):

JARVIS interaction_tree

Changes

  • Add interaction_tree to Client and Extension

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

Notes

Tests were ran to verify that extension loading was not slowed down by this change, as seen below:

Test Runs

@LordOfPolls LordOfPolls changed the base branch from dev to 2.x September 14, 2022 17:20
@LordOfPolls LordOfPolls merged commit ad17e3e into 2.x Sep 14, 2022
@LordOfPolls LordOfPolls deleted the trees branch September 14, 2022 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants