Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently incoming application commands have no direct reference to the bot instance. This change includes the bot instance in our interaction context, much like how we do it in the commands extension. Having a reference to the bot is pretty handy, and fits well with the existing design of the library. A reference to the bot will also allow us to more easily reference a potential before_invoke or after_invoke hook from within discord.app.commands. Finally, by exposing a public get_context method, we open up the ability to define a custom context, a feature currently supported by the commands extension.
- Loading branch information
Showing
3 changed files
with
68 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters