|
|
|
@ -62,8 +62,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
@@ -62,8 +62,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
|
|
|
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("There was an error running %+v\n%+v", cmd.Name, cmd.Help)) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
for role := range m.Member.Roles { |
|
|
|
|
if fmt.Sprintf("%+v", role) == config.AdminRole { |
|
|
|
|
if isAdmin(m.Member) { |
|
|
|
|
if !cmd.Exec(b) { |
|
|
|
|
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("There was an error running %+v\n%+v", cmd.Name, cmd.Help)) |
|
|
|
|
} |
|
|
|
@ -73,7 +72,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
@@ -73,7 +72,6 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func handlePM(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
|