Skip to content

Commit

Permalink
[Discord] Update Bot method to raise TimeoutError
Browse files Browse the repository at this point in the history
Update Bot.wait_for_raw_reaction_add_or_remove method to raise TimeoutError instead of asyncio.TimeoutError
  • Loading branch information
Harmon758 committed Dec 17, 2023
1 parent bc5b5d3 commit 49eaa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ def raw_reaction_check(payload):
for task in pending:
task.cancel()
if not done:
raise asyncio.TimeoutError
raise TimeoutError
return done.pop().result()

# Override Context class
Expand Down

0 comments on commit 49eaa9b

Please sign in to comment.