From d9e6bc467693e131036b5d07a357a437eb9230ac Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 5 Jan 2017 11:04:05 +0100 Subject: [PATCH] Music paused is now once again removed after 10 seconds --- src/NadekoBot/Modules/Music/Music.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index 8b175557..9751c938 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -857,10 +857,14 @@ $"{("tracks".SnPl(musicPlayer.Playlist.Count))} | {(int)total.TotalHours}h {tota { try { + IUserMessage msg; if (paused) - await textCh.SendConfirmAsync("🎵 Music playback **paused**.").ConfigureAwait(false); + msg = await textCh.SendConfirmAsync("🎵 Music playback **paused**.").ConfigureAwait(false); else - await textCh.SendConfirmAsync("🎵 Music playback **resumed**.").ConfigureAwait(false); + msg = await textCh.SendConfirmAsync("🎵 Music playback **resumed**.").ConfigureAwait(false); + + if (msg != null) + msg.DeleteAfter(10); } catch { } };