You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Message sent by <@!%s> in <#%s> flagged by AutoMod. _Please exercise caution: these messages may contain malicious links, phishing attempts, or other harmful content_.",
30
-
user.ID,
31
-
am.ChannelID,
32
-
),
33
-
Timestamp: time.Now().Format(time.RFC3339),
34
-
Color: embedDeleteColor,
35
-
Footer: &discordgo.MessageEmbedFooter{
36
-
Text: fmt.Sprintf("Rule: %s", am.RuleID),
37
-
},
38
-
Author: &discordgo.MessageEmbedAuthor{
39
-
Name: user.Username,
40
-
IconURL: user.AvatarURL("256"),
41
-
},
42
-
Fields: []*discordgo.MessageEmbedField{
43
-
{
44
-
Name: "Contents",
45
-
Value: truncateContent(am.Content),
26
+
message, _:=s.ChannelMessageSendEmbed(
27
+
h.Settings.LogChannel,
28
+
&discordgo.MessageEmbed{
29
+
Title: ":shield: AutoMod alert",
30
+
Description: fmt.Sprintf(
31
+
"Message sent by <@!%s> in <#%s> flagged by AutoMod. _Please exercise caution: these messages may contain malicious links, phishing attempts, or other harmful content_.",
0 commit comments