Skip to content

Commit

Permalink
Avoid unnecessary call to sync_commands (#1563)
Browse files Browse the repository at this point in the history
Implement Fix
  • Loading branch information
BobDotCom authored Aug 12, 2022
1 parent 7418cd4 commit 99b08d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ async def process_application_commands(self, interaction: Interaction, auto_sync
try:
command = self._application_commands[interaction.data["id"]]
except KeyError:
for cmd in self.application_commands:
for cmd in self.application_commands + self.pending_application_commands:
guild_id = interaction.data.get("guild_id")
if guild_id:
guild_id = int(guild_id)
Expand Down

0 comments on commit 99b08d2

Please sign in to comment.