remove user's message when they vote in the polls. close #1313
This commit is contained in:
1 parent
cedf08b128
commit
36069d7552
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user