mirror of https://gitlab.com/litecord/litecord.git
add intents to identify schema
This commit is contained in:
parent
566920b120
commit
a12ef353d3
|
|
@ -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},
|
||||
},
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue