Skip to content

How do cogs pass self into command callbacks? #945

Answered by EmreTech
showierdata9978 asked this question in Q&A
Discussion options

You must be logged in to vote

Application commands are bound to a cog when an instance of a cog is created, so when the callback inside of an application command is called, the cog instance is the first argument passed in.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@showierdata9978
Comment options

@EmreTech
Comment options

@EmreTech
Comment options

Answer selected by showierdata9978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants