mirror of
https://github.com/nikdoof/mumblepy.git
synced 2025-12-19 20:59:28 +00:00
Handle if the channel ID is passed instead of the object.
This commit is contained in:
@@ -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=''):
|
||||
|
||||
Reference in New Issue
Block a user