Cleanup admin check
This commit is contained in:
@ -31,11 +31,9 @@ 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
|
||||||
lastActiveTime = time.Now()
|
lastActiveTime = time.Now()
|
||||||
|
|||||||
Reference in New Issue
Block a user