remove user's message when they vote in the polls. close #1313

This commit is contained in:
Master Kwoth 2017-06-28 03:29:33 +02:00
parent cedf08b128
commit 36069d7552

View File

@ -114,6 +114,7 @@ namespace NadekoBot.Services.Games
{
var toDelete = await ch.SendConfirmAsync(GetText("poll_voted", Format.Bold(msg.Author.ToString()))).ConfigureAwait(false);
toDelete.DeleteAfter(5);
try { await msg.DeleteAsync().ConfigureAwait(false); } catch { }
return true;
}
return false;