From a12ef353d3ba494cfe000b77c2906ccdc8e9cb15 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 11 Jul 2021 01:21:24 -0300 Subject: [PATCH] add intents to identify schema --- litecord/gateway/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litecord/gateway/schemas.py b/litecord/gateway/schemas.py index 4928a37..ed8d12a 100644 --- a/litecord/gateway/schemas.py +++ b/litecord/gateway/schemas.py @@ -21,9 +21,9 @@ from typing import Dict from logbook import Logger - from litecord.gateway.errors import DecodeError from litecord.schemas import LitecordValidator +from litecord.enums import Intents log = Logger(__name__) @@ -64,6 +64,7 @@ IDENTIFY_SCHEMA = { "large_threshold": {"type": "number", "required": False}, "shard": {"type": "list", "required": False}, "presence": {"type": "dict", "required": False}, + "intents": {"coerce": Intents, "required": False}, }, } },