aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/events.py b/bot/cogs/events.py
index 721e51e3d..0b9b75a00 100644
--- a/bot/cogs/events.py
+++ b/bot/cogs/events.py
@@ -100,7 +100,8 @@ class Events:
headers={"X-API-Key": Keys.site_api}
)
- return await response.json()["data"]
+ resp = await response.json()
+ return resp["data"]
async def on_command_error(self, ctx: Context, e: CommandError):
command = ctx.command