From 1a25d4291ff11fd1b1fb13b8114ea2492e105bbd Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Sat, 9 Feb 2019 00:03:26 +0100 Subject: [PATCH] [Audio] Allow join of full voice channel w/ 'move_members' (#1923) --- cogs/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/audio.py b/cogs/audio.py index 101b24500..808756a24 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -2252,7 +2252,7 @@ class Audio: if channel: in_channel = bool(server.me in channel.voice_members) - is_admin = channel.permissions_for(server.me).administrator + can_move = channel.permissions_for(server.me).move_members if channel.user_limit == 0: is_full = False else: @@ -2264,7 +2264,7 @@ class Audio: raise UnauthorizedConnect elif channel.permissions_for(server.me).speak is False: raise UnauthorizedSpeak - elif is_full and not is_admin and not in_channel: + elif is_full and not can_move and not in_channel: raise ChannelUserLimit else: return True