Skip to content

Commit 624c831

Browse files
committed
Merge branch 'master' into actx-option-properties
2 parents 63ceb51 + 780e98c commit 624c831

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
@@ -282,7 +282,7 @@ async def get_desynced_commands(self, guild_id: Optional[int] = None) -> List[Di
282282
if type(to_check[check]) == list:
283283
for opt in to_check[check]:
284284

285-
cmd_vals = [val.get(opt, MISSING) for val in as_dict[check] if check in as_dict]
285+
cmd_vals = [val.get(opt, MISSING) for val in as_dict[check]] if check in as_dict else []
286286
for i, val in enumerate(cmd_vals):
287287
# We need to do some falsy conversion here
288288
# The API considers False (autocomplete) and [] (choices) to be falsy values

0 commit comments

Comments
 (0)