From 8520797e3a36e5df1670874227199d106a659a7d Mon Sep 17 00:00:00 2001 From: Birdie Date: Sat, 22 Jul 2023 19:49:22 +0300 Subject: [PATCH 1/2] feature: add missing intents --- lib/discordrb.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/discordrb.rb b/lib/discordrb.rb index fb9474e87..fcb56b5b0 100644 --- a/lib/discordrb.rb +++ b/lib/discordrb.rb @@ -32,7 +32,11 @@ module Discordrb server_message_typing: 1 << 11, direct_messages: 1 << 12, direct_message_reactions: 1 << 13, - direct_message_typing: 1 << 14 + direct_message_typing: 1 << 14, + message_content: 1 << 15, + server_scheduled_events: 1 << 16, + auto_moderation_configuration: 1 << 20, + auto_moderation_execution: 1 << 21 }.freeze # All available intents @@ -40,7 +44,7 @@ module Discordrb # All unprivileged intents # @see https://discord.com/developers/docs/topics/gateway#privileged-intents - UNPRIVILEGED_INTENTS = ALL_INTENTS & ~(INTENTS[:server_members] | INTENTS[:server_presences]) + UNPRIVILEGED_INTENTS = ALL_INTENTS & ~(INTENTS[:server_members] | INTENTS[:server_presences] | INTENTS[:message_content]) # No intents NO_INTENTS = 0 From a285204706a65279a66c7d252799a4424b5e80c3 Mon Sep 17 00:00:00 2001 From: Birdie Date: Mon, 14 Oct 2024 10:37:06 +0300 Subject: [PATCH 2/2] feature: add new intents and rename message content one --- lib/discordrb.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/discordrb.rb b/lib/discordrb.rb index fcb56b5b0..72487d081 100644 --- a/lib/discordrb.rb +++ b/lib/discordrb.rb @@ -33,10 +33,12 @@ module Discordrb direct_messages: 1 << 12, direct_message_reactions: 1 << 13, direct_message_typing: 1 << 14, - message_content: 1 << 15, + server_message_content: 1 << 15, server_scheduled_events: 1 << 16, auto_moderation_configuration: 1 << 20, - auto_moderation_execution: 1 << 21 + auto_moderation_execution: 1 << 21, + server_message_polls: 1 << 24, + direct_message_polls: 1 << 25 }.freeze # All available intents @@ -44,7 +46,7 @@ module Discordrb # All unprivileged intents # @see https://discord.com/developers/docs/topics/gateway#privileged-intents - UNPRIVILEGED_INTENTS = ALL_INTENTS & ~(INTENTS[:server_members] | INTENTS[:server_presences] | INTENTS[:message_content]) + UNPRIVILEGED_INTENTS = ALL_INTENTS & ~(INTENTS[:server_members] | INTENTS[:server_presences] | INTENTS[:server_message_content]) # No intents NO_INTENTS = 0