|
@@ -12,6 +12,13 @@ func GetSession(token string) (*discordgo.Session, error) {
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
+ session.Identify.Intents =
|
|
|
+ discordgo.IntentsGuildMembers |
|
|
|
+ discordgo.IntentsGuildVoiceStates |
|
|
|
+ discordgo.IntentsGuildMessages |
|
|
|
+ discordgo.IntentsDirectMessages |
|
|
|
+ discordgo.IntentsDirectMessageReactions
|
|
|
+
|
|
|
// Open a websocket connection to Discord and begin listening.
|
|
|
err = session.Open()
|
|
|
if err != nil {
|