Notice to all users

We are migrating towards a new forum system located at, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3
  1. #1
    Join Date
    November 2017

    Solved Alternative way to create channel

    Finally, after setting up channel parameters, create the channel in one step with

    unsigned int ts3server_createChannel( serverID,
    uint64 serverID;
    struct TS3ChannelCreationParams* channelCreationParams;
    enum ChannelCreateFlags flags;
    uint64* result;


    Address of the struct TS3ChannelCreationParams with the creation parameters for this .


    Defines if the channel password is passed as plaintext or already encrypted. If already encrypted, this is the password retrieved via the channel variable CHANNEL_PASSWORD, which is returned as encrypted password. In this case you would specify the password on channel creation as already encrypted to avoid it being encrypted automatically a second time.

    enum ChannelCreateFlags{

    Address to be filled with the created channel ID.
    Documentation source page

    Is the return value 'result' be the channelID ?

    With this way to create a channel, we have to give it a channelID :
    	// Set essential parameters are channel parent ID and channel ID
    	if (ts3server_setChannelCreationParams(*_channelCreationParams, channelParentID, channelID) != ERROR_ok) {
    		throw std::runtime_error("An error occured : set channel creation params failed.");
    Can I mix the two effects by giving 0 at channelID param and after flush (and channel created) retreive the channelID given by the server.
    Last edited by Vincent_Stormancer; January 22nd, 2018 at 02:29 PM. Reason: resolved status

  2. #2
    Join Date
    September 2012

    the functions return error codes.
    The setChannelVariable way with channel id 0 will require a call to flushChannelCreation with a pointer to a variable which will be set to the channel id as assigned by the server.

    With the CreationParameters set of functions you can specify the channel ID upfront. This is useful for when you want to restore a set of channels that was created before and saved it to disk for example in some format.

    See examples\server_creation_params for channel creation parameters in the download of the SDK.

    The example mentions that you can specify 0 and will get the server assigned channel id back in the variable pointed to by the result parameter of createChannel.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #3
    Join Date
    November 2017
    Ok, thanks for your answer. I will do with the
    ts3server_flushChannelCreation(serverID, parentChannelID, &newChannelID)
    I appreciate your quick usefull support

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to create a channel that create sup channel on join?
    By ThunderNRW in forum Server Support
    Replies: 0
    Last Post: June 1st, 2015, 10:00 PM
  2. Create an alternative Server
    By Oneiros in forum General Questions
    Replies: 3
    Last Post: September 2nd, 2014, 08:29 PM
  3. Replies: 4
    Last Post: December 14th, 2013, 09:17 PM
  4. Better alternative to channel commander
    By Salah ad Din in forum Suggestions and Feedback
    Replies: 1
    Last Post: March 21st, 2010, 05:49 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts