Skip to content

Commit de594f6

Browse files
authored
Merge pull request #33 from maduck/master
fix: retry bug in get_all_commands utility
2 parents ce6bb75 + ca30173 commit de594f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/utils/manage_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async def get_all_commands(bot_id,
8787
if resp.status == 429:
8888
_json = await resp.json()
8989
await asyncio.sleep(_json["retry_after"])
90-
return await remove_slash_command(bot_id, bot_token, guild_id)
90+
return await get_all_commands(bot_id, bot_token, guild_id)
9191
if not 200 <= resp.status < 300:
9292
raise RequestFailure(resp.status, await resp.text())
9393
return await resp.json()

0 commit comments

Comments
 (0)