mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-25 18:43:00 +00:00 
			
		
		
		
	Only remove if the user is actually in the voice channel.
This commit is contained in:
		| @@ -95,7 +95,7 @@ class Member(User): | |||||||
|         if old_channel is None and self.voice_channel is not None: |         if old_channel is None and self.voice_channel is not None: | ||||||
|             # we joined a channel |             # we joined a channel | ||||||
|             self.voice_channel.voice_members.append(self) |             self.voice_channel.voice_members.append(self) | ||||||
|         elif old_channel is not None and self.voice_channel is None: |         elif old_channel is not None and self.voice_channel is None and self in old_channel: | ||||||
|             # we left a channel |             # we left a channel | ||||||
|             old_channel.voice_members.remove(self) |             old_channel.voice_members.remove(self) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user