Skip to content

Commit 99b08d2

Browse files
authored
Avoid unnecessary call to sync_commands (#1563)
Implement Fix
1 parent 7418cd4 commit 99b08d2

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
@@ -711,7 +711,7 @@ async def process_application_commands(self, interaction: Interaction, auto_sync
711711
try:
712712
command = self._application_commands[interaction.data["id"]]
713713
except KeyError:
714-
for cmd in self.application_commands:
714+
for cmd in self.application_commands + self.pending_application_commands:
715715
guild_id = interaction.data.get("guild_id")
716716
if guild_id:
717717
guild_id = int(guild_id)

0 commit comments

Comments
 (0)