mirror of
https://github.com/nikdoof/mumblepy.git
synced 2025-12-17 03:39:22 +00:00
Add helper functions to Server and more tests.
This commit is contained in:
@@ -54,6 +54,11 @@ class Server(object):
|
||||
|
||||
return Channel(self, channel)
|
||||
|
||||
def get_channel_by_name(self, channel_name):
|
||||
for channel in self.get_channels():
|
||||
if channel.name == channel_name:
|
||||
return channel
|
||||
|
||||
def set_channel_state(self, channel):
|
||||
self.__server.setChannelState(channel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user