File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,14 +197,14 @@ async def register_commands(self) -> None:
197
197
try :
198
198
cmds = await self .http .bulk_upsert_guild_commands (self .user .id , guild_id ,
199
199
update_guild_commands [guild_id ])
200
+ for i in cmds :
201
+ cmd = get (self .to_register , name = i ["name" ], description = i ["description" ], type = i ['type' ])
202
+ self .app_commands [i ["id" ]] = cmd
200
203
except Forbidden as e :
201
204
raised_error = e
202
205
raised_guilds .append (guild_id )
203
- for i in cmds :
204
- cmd = get (self .to_register , name = i ["name" ], description = i ["description" ], type = i ['type' ])
205
- self .app_commands [i ["id" ]] = cmd
206
206
if raised_error :
207
- try :
207
+ try : # TODO: this is awful
208
208
raise raised_error
209
209
except Forbidden :
210
210
print (f'Ignoring exception running bulk_upsert_guild_commands on guilds { raised_guilds } ' ,
You can’t perform that action at this time.
0 commit comments