We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade1830 commit 595f3e3Copy full SHA for 595f3e3
interactions/client/bot.py
@@ -447,7 +447,7 @@ async def __sync(self) -> None: # sourcery no-metrics
447
448
# responsible for checking if a command is in the cache but not a coro -> allowing removal
449
450
- for _id in _guild_ids:
+ for _id in _guild_ids.copy():
451
_cmds = await self._http.get_application_commands(
452
application_id=self.me.id, guild_id=_id, with_localizations=True
453
)
@@ -463,6 +463,7 @@ async def __sync(self) -> None: # sourcery no-metrics
463
"`application.commands` scope!"
464
465
__blocked_guilds.add(_id)
466
+ _guild_ids.remove(_id)
467
continue
468
469
for command in _cmds:
0 commit comments