mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix CommandSyncFailure raising for other 400 error types
This commit is contained in:
1 parent
e8f6b29a2d
commit
5cc6af5917
1 file changed
+1
-1
@@ -1068,7 +1068,7 @@ class CommandTree(Generic[ClientT]):
|
||||
else:
|
||||
data = await self._http.bulk_upsert_guild_commands(self.client.application_id, guild.id, payload=payload)
|
||||
except HTTPException as e:
|
||||
if e.status == 400:
|
||||
if e.status == 400 and e.code == 50035:
|
||||
raise CommandSyncFailure(e, commands) from None
|
||||
raise
|
||||
|
||||
|
||||
Reference in new issue
Block a user