Music paused is now once again removed after 10 seconds

This commit is contained in:
Kwoth 2017-01-05 11:04:05 +01:00
parent 74b6ef5e7b
commit d9e6bc4676

View File

@ -857,10 +857,14 @@ $"{("tracks".SnPl(musicPlayer.Playlist.Count))} | {(int)total.TotalHours}h {tota
{ {
try try
{ {
IUserMessage msg;
if (paused) if (paused)
await textCh.SendConfirmAsync("🎵 Music playback **paused**.").ConfigureAwait(false); msg = await textCh.SendConfirmAsync("🎵 Music playback **paused**.").ConfigureAwait(false);
else 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 { } catch { }
}; };