mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 17:42:48 +00:00
fix: attempt fixing voice disconnections
This commit is contained in:
@@ -46,6 +46,16 @@ func Start(token string) *discordgo.Session {
|
||||
}
|
||||
})
|
||||
|
||||
// We need information about guilds (which includes their channels),
|
||||
// messages and voice states.
|
||||
_session.Identify.Intents = discordgo.MakeIntent(
|
||||
discordgo.IntentsGuilds |
|
||||
discordgo.IntentsGuildMessages |
|
||||
discordgo.IntentsGuildVoiceStates |
|
||||
discordgo.IntentsGuildMessages |
|
||||
discordgo.IntentsGuildMessageReactions |
|
||||
discordgo.IntentsAllWithoutPrivileged)
|
||||
|
||||
// start listening for commands
|
||||
// Open the websocket and begin listening.
|
||||
err := _session.Open()
|
||||
|
||||
Reference in New Issue
Block a user