From 08a0de80405a20519e55d2b9b0c85eeda08372f0 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 8 Dec 2018 22:18:17 -0300 Subject: [PATCH] schemas: fix GW_ACTIVITY validation --- litecord/schemas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litecord/schemas.py b/litecord/schemas.py index 86f1513..c631572 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -456,7 +456,9 @@ GW_STATUS_UPDATE = { 'status': {'type': 'status_external', 'required': False, 'default': 'online'}, 'activities': { - 'type': 'list', 'required': False, 'schema': GW_ACTIVITY}, + 'type': 'list', 'required': False, + 'schema': {'type': 'dict', 'schema': GW_ACTIVITY} + }, 'afk': {'type': 'boolean', 'required': False}, 'since': {'type': 'number', 'required': False, 'nullable': True},