Log deleted link
This commit is contained in:
@ -64,6 +64,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
if !safe {
|
||||
s.ChannelMessageSend(m.ChannelID, "That domain is not approved by the admins. Please contact Admins if the domain should be whitelisted.")
|
||||
s.ChannelMessageDelete(m.ChannelID, m.ID)
|
||||
s.ChannelMessageSend(config.AdminChannel, fmt.Sprintf("DELETED [%+v]: %+v", m.Author.Username, m.Content))
|
||||
}
|
||||
}
|
||||
parts := strings.Split(m.Content, " ")
|
||||
|
||||
Reference in New Issue
Block a user