From 4f6af025cf988c79c2c064bac2cc934bfc87982b Mon Sep 17 00:00:00 2001 From: Matte23 Date: Thu, 25 Nov 2021 10:26:58 +0100 Subject: [PATCH] Subscribe only to required intents --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index dc8e8d9..5655f3b 100644 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ func main() { dg.AddHandler(handleMessage) dg.AddHandler(handleVoiceActivity) dg.AddHandler(handlePresenceUpdate) - dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll) + dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsGuildMessages | discordgo.IntentsGuildVoiceStates | discordgo.IntentsGuildPresences | discordgo.IntentsGuildMembers) // Open a websocket connection to Discord and begin listening. err = dg.Open()