diff options
author | 2023-03-12 22:53:23 +0100 | |
---|---|---|
committer | 2023-03-12 22:53:23 +0100 | |
commit | db3f040f8f8aed37bd8d9dcdacc179fb5aef2135 (patch) | |
tree | 988efe6494b7c0a45fa026be1b443efd005f6a68 /botstrap.py | |
parent | replace 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.py | 1 |
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 |