Skip to content

Commit fd9c1ef

Browse files
committed
print guild thang
1 parent 0388ce3 commit fd9c1ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

discord/bot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
from typing import Callable, Optional
2828

29+
import sys
30+
2931
from .client import Client
3032
from .shard import AutoShardedClient
3133
from .utils import get
@@ -194,9 +196,10 @@ async def register_commands(self) -> None:
194196
cmds = await self.http.bulk_upsert_guild_commands(self.user.id, guild_id,
195197
update_guild_commands[guild_id])
196198
except Forbidden:
197-
if update_guild_commands[guild_id] == []:
199+
if not update_guild_commands[guild_id]:
198200
continue
199201
else:
202+
print(f"Failed to add command to guild {guild_id}", file=sys.stderr)
200203
raise
201204
else:
202205
for i in cmds:

0 commit comments

Comments
 (0)