Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 5b5c50b

Browse files
committed
changed ERROR: ratelimit to WARNING: ratelimit
1 parent 2e797a9 commit 5b5c50b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

discord_ui/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ def get_message_payload(content=MISSING, tts=False, embed: discord.Embed=MISSING
115115
return payload
116116

117117
def handle_rate_limit(data):
118-
logging.error("You are being rate limited. Retrying after " + str(data["retry_after"]) + " seconds")
118+
logging.warning("You are being rate limited. Retrying after " + str(data["retry_after"]) + " seconds")
119119
return asyncio.sleep(data["retry_after"])

discord_ui/slash/types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,6 @@ async def nuke(self, globals=True, guilds=All):
16441644
await self._state.slash_http.delete_global_commands()
16451645
for id in guilds:
16461646
await self._state.slash_http.delete_guild_commands(id)
1647-
1648-
16491647
def get_command_for(self, interaction: InteractionPayload):
16501648
command = self._raw_cache.get(interaction["data"]["id"])
16511649
if command is None:

0 commit comments

Comments
 (0)