Browse Source

Cleanup admin check

master
Gregory Rudolph 4 years ago
parent
commit
81f7d3ccdc
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 6
      discordMessage.go

6
discordMessage.go

@ -31,10 +31,8 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
} }
return return
} }
for role := range m.Member.Roles { if isAdmin(m.Member) {
if fmt.Sprintf("%+v", role) == config.AdminRole { adminInteraction(s, m.Author.ID)
adminInteraction(s, m.Author.ID)
}
} }
if m.ChannelID != config.AdminChannel { if m.ChannelID != config.AdminChannel {
lastActiveChan = m.ChannelID lastActiveChan = m.ChannelID

Loading…
Cancel
Save