diff options
-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 |