Handle if the channel ID is passed instead of the object.

This commit is contained in:
2013-11-07 01:18:40 +00:00
parent a8ae0ccdc8
commit c800be8c34

View File

@@ -121,6 +121,8 @@ class User(object):
return self.update(prioritySpeaker=0)
def move(self, channel):
if isinstance(channel, int):
return self.update(channel=channel)
return self.update(channel=channel.id)
def kick(self, reason=''):