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 4af8da5 commit 0388ce3Copy full SHA for 0388ce3
discord/bot.py
@@ -193,14 +193,15 @@ async def register_commands(self) -> None:
193
try:
194
cmds = await self.http.bulk_upsert_guild_commands(self.user.id, guild_id,
195
update_guild_commands[guild_id])
196
- for i in cmds:
197
- cmd = get(self.to_register, name=i["name"], description=i["description"], type=i['type'])
198
- self.app_commands[i["id"]] = cmd
199
except Forbidden:
200
if update_guild_commands[guild_id] == []:
201
continue
202
else:
203
raise
+ else:
+ for i in cmds:
+ cmd = get(self.to_register, name=i["name"], description=i["description"], type=i['type'])
204
+ self.app_commands[i["id"]] = cmd
205
206
cmds = await self.http.bulk_upsert_global_commands(self.user.id, commands)
207
0 commit comments