diff options
| author | 2018-07-29 20:06:17 +0100 | |
|---|---|---|
| committer | 2018-07-29 20:06:17 +0100 | |
| commit | 221a1944e73da4a2062e2e0db3a794733bbcc50c (patch) | |
| tree | 4f6a352f48dd7871294b50a12d26d54d8ca08839 | |
| parent | Merge branch 'role-persist' into 'master' (diff) | |
`'generator' object is not subscriptable`
| -rw-r--r-- | bot/cogs/events.py | 3 |
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 |