mirror of
https://github.com/nikdoof/python-ts3.git
synced 2025-12-17 03:49:25 +00:00
updated docs
This commit is contained in:
@@ -34,7 +34,7 @@ Example showing how to create a channel and sub-channel for it using python-ts3
|
|||||||
response = server.send_command('channelcreate', keys={'channel_name': 'Just some channel'})
|
response = server.send_command('channelcreate', keys={'channel_name': 'Just some channel'})
|
||||||
|
|
||||||
# id of the newly created channel
|
# id of the newly created channel
|
||||||
channel_id = response.response['keys']['cid']
|
channel_id = response.data['keys']['cid']
|
||||||
|
|
||||||
# create a sub-channel
|
# create a sub-channel
|
||||||
server.send_command('channelcreate', keys={'channel_name': 'Just some sub-channel', 'cpid': channel_id})
|
server.send_command('channelcreate', keys={'channel_name': 'Just some sub-channel', 'cpid': channel_id})
|
||||||
|
|||||||
Reference in New Issue
Block a user