-
-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix self._application_commands.pop
in remove_application_command
#1391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And please use a descriptive title instead of Fixes #xyz.
Instead write this into the description
self._application_commands.pop
in remove_application_command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! ❤️
@Pycord-Development/contributors |
Summary
self._application_commands
key types are strings,.pop(int(command.id), None)
method doesn't affect any element of dict.Change to
.pop(command.id, None)
will successfully remove the command from dict. This fixes issue #1390Checklist
type: ignore
comments were used, a comment is also left explaining why