From 00e734eceae4064b0d3bb80ede14393caec2aa36 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 29 Oct 2020 14:31:07 -0400 Subject: [PATCH] Add intent handling --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 3f76215..3fe42c1 100644 --- a/main.go +++ b/main.go @@ -76,6 +76,9 @@ func main() { dg.AddHandler(guildMemberBanned) dg.AddHandler(messageCreate) dg.AddHandler(readReaction) + dg.AddHandler(guildMemberUpdate) + + dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll) err = dg.Open() if err != nil { @@ -159,7 +162,7 @@ func runPurge(s *discordgo.Session) { func ready(s *discordgo.Session, event *discordgo.Ready) { // Set the playing status. - s.UpdateStatus(0, "DreamDaddy v0.10") + s.UpdateStatus(0, "DreamDaddy v0.11") } func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {