Skip to content

Commit ec075de

Browse files
committed
Remove unnecessary type conversion
1 parent 0e16ccd commit ec075de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ async def sync_commands(
576576
guild_permissions: List = []
577577

578578
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
579+
cmd = find(lambda cmd: cmd.name == i["name"] and cmd.type == i["type"] and cmd.guild_ids is not None
580580
and int(i["guild_id"]) in cmd.guild_ids, self.pending_application_commands)
581581
if not cmd:
582582
# command has not been added yet

0 commit comments

Comments
 (0)