mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Fix IndexError in Client.move_member.
This commit is contained in:
parent
dca3b52e5d
commit
26e9b79a2d
@ -2351,7 +2351,7 @@ class Client:
|
||||
You do not have permissions to move the member.
|
||||
"""
|
||||
|
||||
url = '{0}/{1.server.id}/members/{2.id}'.format(endpoints.SERVERS, member)
|
||||
url = '{0}/{1.server.id}/members/{1.id}'.format(endpoints.SERVERS, member)
|
||||
|
||||
if getattr(channel, 'type', ChannelType.text) != ChannelType.voice:
|
||||
raise InvalidArgument('The channel provided must be a voice channel.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user