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 7fbd75f commit 4e8b396Copy full SHA for 4e8b396
discord/bot.py
@@ -576,8 +576,8 @@ async def sync_commands(
576
guild_permissions: List = []
577
578
for i in commands:
579
- cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and cmd.guild_ids is not None
580
- and (i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
+ cmd = find(lambda cmd: cmd.name == i["name"] and str(cmd.type) == str(i["type"]) and cmd.guild_ids is not None
+ and int(i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
581
if not cmd:
582
# command has not been added yet
583
continue
0 commit comments