From aeaf245fb5cb2188d3eda1abb8217cf99c1ab9e4 Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Thu, 22 Jul 2021 18:26:54 +0400 Subject: [PATCH] Add GUILDS and GUILD_MESSAGES intents for bots --- discordo.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discordo.go b/discordo.go index b8a58a3..68c8a79 100644 --- a/discordo.go +++ b/discordo.go @@ -90,6 +90,9 @@ func newSession(email string, password string, token string) *session.Session { if !strings.HasPrefix(token, "Bot ") { sess.AddHandler(onReady) + } else { + sess.Gateway.AddIntents(gateway.IntentGuilds) + sess.Gateway.AddIntents(gateway.IntentGuildMessages) } }