aboutsummaryrefslogtreecommitdiffstats
path: root/botstrap.py
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-12 22:53:23 +0100
committerGravatar shtlrs <[email protected]>2023-03-12 22:53:23 +0100
commitdb3f040f8f8aed37bd8d9dcdacc179fb5aef2135 (patch)
tree988efe6494b7c0a45fa026be1b443efd005f6a68 /botstrap.py
parentreplace upgrade_server_to_community with upgrade_server_to_community_if_neces... (diff)
bring back the response event hook
Diffstat (limited to 'botstrap.py')
-rw-r--r--botstrap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/botstrap.py b/botstrap.py
index aa6cf87a9..f6d35485d 100644
--- a/botstrap.py
+++ b/botstrap.py
@@ -46,6 +46,7 @@ class DiscordClient(Client):
super().__init__(
base_url="https://discord.com/api/v10",
headers={"Authorization": f"Bot {BOT_TOKEN}"},
+ event_hooks={"response": [self._raise_for_status]},
)
@staticmethod