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 0388ce3 commit fd9c1efCopy full SHA for fd9c1ef
discord/bot.py
@@ -26,6 +26,8 @@
26
27
from typing import Callable, Optional
28
29
+import sys
30
+
31
from .client import Client
32
from .shard import AutoShardedClient
33
from .utils import get
@@ -194,9 +196,10 @@ async def register_commands(self) -> None:
194
196
cmds = await self.http.bulk_upsert_guild_commands(self.user.id, guild_id,
195
197
update_guild_commands[guild_id])
198
except Forbidden:
- if update_guild_commands[guild_id] == []:
199
+ if not update_guild_commands[guild_id]:
200
continue
201
else:
202
+ print(f"Failed to add command to guild {guild_id}", file=sys.stderr)
203
raise
204
205
for i in cmds:
0 commit comments