Skip to content

Commit

Permalink
Send pardoned warnings to investigations
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Jun 21, 2021
1 parent cc8c8b2 commit adf539b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/MessageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ public static async Task MessageHandlerAsync(DiscordClient client, DiscordMessag
if (Warnings.GetPermLevel(member) == ServerPermLevel.nothing && !Program.db.HashExists("emojiPardoned", message.Author.Id.ToString()))
{
await Program.db.HashSetAsync("emojiPardoned", member.Id.ToString(), false);
await message.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Information} {message.Author.Mention}, if you want to play around with lots of emoji, please use <#{Program.cfgjson.UnrestrictedEmojiChannels[0]}> to avoid punishment.");
var msgOut = await message.Channel.SendMessageAsync($"{Program.cfgjson.Emoji.Information} {message.Author.Mention}, if you want to play around with lots of emoji, please use <#{Program.cfgjson.UnrestrictedEmojiChannels[0]}> to avoid punishment.");
await SendInfringingMessaageAsync(Program.badMsgLog, message, reason, Warnings.MessageLink(msgOut));
return;
}

Expand Down

0 comments on commit adf539b

Please sign in to comment.