From e16b1f8e5ba735f93321d1266d9b4754bc2024a5 Mon Sep 17 00:00:00 2001 From: nitroflap Date: Wed, 16 Feb 2022 16:31:13 +0300 Subject: [PATCH] fix(structs): added back old intent definitions for compatibility --- structs.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/structs.go b/structs.go index 29a2eb0..17789f8 100644 --- a/structs.go +++ b/structs.go @@ -1631,6 +1631,26 @@ const ( IntentMessageContent Intent = 1 << 15 IntentGuildScheduledEvents Intent = 1 << 16 + // TODO: remove when compatibility is not needed + + IntentsGuilds Intent = 1 << 0 + IntentsGuildMembers Intent = 1 << 1 + IntentsGuildBans Intent = 1 << 2 + IntentsGuildEmojis Intent = 1 << 3 + IntentsGuildIntegrations Intent = 1 << 4 + IntentsGuildWebhooks Intent = 1 << 5 + IntentsGuildInvites Intent = 1 << 6 + IntentsGuildVoiceStates Intent = 1 << 7 + IntentsGuildPresences Intent = 1 << 8 + IntentsGuildMessages Intent = 1 << 9 + IntentsGuildMessageReactions Intent = 1 << 10 + IntentsGuildMessageTyping Intent = 1 << 11 + IntentsDirectMessages Intent = 1 << 12 + IntentsDirectMessageReactions Intent = 1 << 13 + IntentsDirectMessageTyping Intent = 1 << 14 + IntentsMessageContent Intent = 1 << 15 + IntentsGuildScheduledEvents Intent = 1 << 16 + IntentsAllWithoutPrivileged = IntentGuilds | IntentGuildBans | IntentGuildEmojis |