From a0c69cb3d1088191fafd562223c0d0884b4b5b8f Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 19 Mar 2018 16:57:06 +0000 Subject: [PATCH] remove owner check, move mutual vc check down --- examples/music.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/music.py b/examples/music.py index cd6fa4c4..d38633f3 100644 --- a/examples/music.py +++ b/examples/music.py @@ -249,17 +249,16 @@ async def find(self, ctx, *, query): await ctx.send(embed=embed) - @commands.is_owner() @commands.command(aliases=['dc']) async def disconnect(self, ctx): player = self.bot.lavalink.players.get(ctx.guild.id) - if not ctx.author.voice or (player.is_connected and ctx.author.voice.channel.id != int(player.channel_id)): - return await ctx.send('You\'re not in my voicechannel!') - if not player.is_connected: return await ctx.send('Not connected.') + if not ctx.author.voice or (player.is_connected and ctx.author.voice.channel.id != int(player.channel_id)): + return await ctx.send('You\'re not in my voicechannel!') + await player.disconnect() await ctx.send('*⃣ | Disconnected.')