From f7300267440b7f9cc469cff7bc6b7a5ca405a885 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 4 Jan 2017 13:23:30 +0100 Subject: [PATCH] !!d fixed --- src/NadekoBot/Modules/Music/Music.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index 7ecef7c5..8b175557 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -101,14 +101,14 @@ namespace NadekoBot.Modules.Music [RequireContext(ContextType.Guild)] public async Task Destroy() { - await Context.Channel.SendErrorAsync("This command is temporarily disabled.").ConfigureAwait(false); + //await Context.Channel.SendErrorAsync("This command is temporarily disabled.").ConfigureAwait(false); - /*MusicPlayer musicPlayer; - if (!MusicPlayers.TryGetValue(channel.Guild.Id, out musicPlayer)) return Task.CompletedTask; - if (((IGuildUser)umsg.Author).VoiceChannel == musicPlayer.PlaybackVoiceChannel) - if(MusicPlayers.TryRemove(channel.Guild.Id, out musicPlayer)) + MusicPlayer musicPlayer; + if (!MusicPlayers.TryGetValue(Context.Guild.Id, out musicPlayer)) return; + if (((IGuildUser)Context.User).VoiceChannel == musicPlayer.PlaybackVoiceChannel) + if (MusicPlayers.TryRemove(Context.Guild.Id, out musicPlayer)) musicPlayer.Destroy(); - return Task.CompletedTask;*/ + } [NadekoCommand, Usage, Description, Aliases]