We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e16ccd commit ec075deCopy full SHA for ec075de
discord/bot.py
@@ -576,7 +576,7 @@ async def sync_commands(
576
guild_permissions: List = []
577
578
for i in commands:
579
- cmd = find(lambda cmd: cmd.name == i["name"] and str(cmd.type) == str(i["type"]) and cmd.guild_ids is not None
+ cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and cmd.guild_ids is not None
580
and int(i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
581
if not cmd:
582
# command has not been added yet
0 commit comments