Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ async def sync_commands(
guild_permissions: List = []

for i in commands:
cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and cmd.guild_ids is not None
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)
if not cmd:
# command has not been added yet
continue
Expand Down