diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 1326e1c7f..15d657aaf 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -1027,8 +1027,10 @@ class Audio(commands.Cog): return await self._embed_msg(ctx, _("That URL is not allowed.")) if not self._player_check(ctx): try: - if not ctx.author.voice.channel.permissions_for(ctx.me).connect or self._userlimit( - ctx.author.voice.channel + if ( + not ctx.author.voice.channel.permissions_for(ctx.me).connect + or not ctx.author.voice.channel.permissions_for(ctx.me).move_members + and self._userlimit(ctx.author.voice.channel) ): return await self._embed_msg( ctx, _("I don't have permission to connect to your channel.") @@ -1952,8 +1954,10 @@ class Audio(commands.Cog): return False if not self._player_check(ctx): try: - if not ctx.author.voice.channel.permissions_for(ctx.me).connect or self._userlimit( - ctx.author.voice.channel + if ( + not ctx.author.voice.channel.permissions_for(ctx.me).connect + or not ctx.author.voice.channel.permissions_for(ctx.me).move_members + and self._userlimit(ctx.author.voice.channel) ): return await self._embed_msg( ctx, _("I don't have permission to connect to your channel.") @@ -2406,8 +2410,10 @@ class Audio(commands.Cog): if not self._player_check(ctx): try: - if not ctx.author.voice.channel.permissions_for(ctx.me).connect or self._userlimit( - ctx.author.voice.channel + if ( + not ctx.author.voice.channel.permissions_for(ctx.me).connect + or not ctx.author.voice.channel.permissions_for(ctx.me).move_members + and self._userlimit(ctx.author.voice.channel) ): return await self._embed_msg( ctx, _("I don't have permission to connect to your channel.")