How to create a channel ?

ehthe

Retired Staff
Contributor
Apr 26, 2015
1,028
896
216
Well today I wanted to create a channel with the sdk with a topic, a password and a description set at the creation of the channel. Couldn't filnd any way to do it. Only thing I found is this
Code:
    unsigned int (*setChannelVariableAsInt)(uint64 serverConnectionHandlerID, uint64 channelID, size_t flag, int value);
    unsigned int (*setChannelVariableAsUInt64)(uint64 serverConnectionHandlerID, uint64 channelID, size_t flag, uint64 value);
    unsigned int (*setChannelVariableAsString)(uint64 serverConnectionHandlerID, uint64 channelID, size_t flag, const char* value);
    unsigned int (*flushChannelUpdates)(uint64 serverConnectionHandlerID, uint64 channelID, const char* returnCode);
    unsigned int (*flushChannelCreation)(uint64 serverConnectionHandlerID, uint64 channelParentID, const char* returnCode);
Maybe I need to set everything with setchannelvariableasblah and then flush the creation ?
Does anyone know how to do it ?
 

ehthe

Retired Staff
Contributor
Apr 26, 2015
1,028
896
216
Thanks :)
But then what about the channelid ?
 

ehthe

Retired Staff
Contributor
Apr 26, 2015
1,028
896
216
Alright nevermind :)
I just put 0 in the channelid and it worked :D
 

JayJax

Active Member
Apr 28, 2015
204
109
88
Now your busy with the teamspeak sdk.
Can you find out if there is any sql injection possible with the ts3 server mysql database?
 

ehthe

Retired Staff
Contributor
Apr 26, 2015
1,028
896
216
Wow I'm way too lazy to do that :p
 
Top