Skip to content

ctx.command object guaranteed to be identical to attributes of the cog class? #5864

Answered by Rapptz
ioistired asked this question in Q&A
Discussion options

You must be logged in to vote

Commands in cogs undergo copy operations to allow multiple cog instances to have separate command instances.

Comparison between instances is generally not allowed (evident by the fact there's no __eq__ or even __hash__) -- using Command.qualified_name is the proper solution here.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
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