enums: add Intents flags

This commit is contained in:
Luna 2021-07-11 00:20:02 -03:00
parent 16665e5692
commit 49e1938ed6
1 changed files with 18 additions and 0 deletions

View File

@ -247,3 +247,21 @@ class Feature(EasyEnum):
# unknown
commerce = "COMMERCE"
news = "NEWS"
class Intents(Flags):
GUILDS = 1 << 0
GUILD_MEMBERS = 1 << 1
GUILD_BANS = 1 << 2
GUILD_EMOJIS = 1 << 3
GUILD_INTEGRATIONS = 1 << 4
GUILD_WEBHOOKS = 1 << 5
GUILD_INVITES = 1 << 6
GUILD_VOICE_STATES = 1 << 7
GUILD_PRESENCES = 1 << 8
GUILD_MESSAGES = 1 << 9
GUILD_MESSAGE_REACTIONS = 1 << 10
GUILD_MESSAGE_TYPING = 1 << 11
DIRECT_MESSAGES = 1 << 12
DIRECT_MESSAGE_REACTIONS = 1 << 13
DIRECT_MESSAGE_TYPING = 1 << 14