|
@@ -53,6 +53,10 @@ func main() {
|
|
|
// Register guildCreate as a callback for the guildCreate events.
|
|
|
dg.AddHandler(guildCreate)
|
|
|
|
|
|
+ // We need information about guilds (which includes their channels),
|
|
|
+ // messages and voice states.
|
|
|
+ dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsGuilds | discordgo.IntentsGuildMessages | discordgo.IntentsGuildVoiceStates)
|
|
|
+
|
|
|
// Open the websocket and begin listening.
|
|
|
err = dg.Open()
|
|
|
if err != nil {
|