Update LogCommand.cs

This commit is contained in:
samvaio 2016-11-23 00:59:38 +05:30 committed by GitHub
parent d489b986d6
commit 117f8136e7

View File

@ -410,7 +410,7 @@ namespace NadekoBot.Modules.Administration
try
{
var str = $@"🕔`{prettyCurrentTime}`👤`{msg.Author.Username}#{msg.Author.Discriminator}` **Deleted Message** #⃣ `{channel.Name}`
🗑 `{msg.Resolve(userHandling: UserMentionHandling.NameAndDiscriminator)}`";
🗑 {msg.Resolve(userHandling: UserMentionHandling.NameAndDiscriminator)}";
if (msg.Attachments.Any())
str += $"{Environment.NewLine}📎 {string.Join(", ", msg.Attachments.Select(a => a.ProxyUrl))}";
await logChannel.SendMessageAsync(str.SanitizeMentions()).ConfigureAwait(false);