essem
Member
Just updated to 1.0.0-beta.1 and encountered a problem with the channel creation now: the channel got created but below the whole channeltree, previously it was created as a subchannel while using this code:
if anyone can confirm this behaviour or point out an error is on my side it would be much appreciated
JavaScript:
//...
var currentchannel = client.getChannels()[0];
if(currentchannel == undefined) return;
if(client == undefined) return;
var channelparams = {};
channelparams.name = ""+client.name()+"'s channel";
channelparams.parent = currentchannel;
channelparams.semiPermanent = true;
channelparams.encrypted = true;
channelparams.codec = 4;
channelparams.codecQuality = 6;
channelparams.maxClients = -1;
channelparams.permanent = false;
var channel = backend.createChannel(channelparams);
if(channel == undefined) {
engine.log("Could not create private channel for some reason.");
return;
}
//...
if anyone can confirm this behaviour or point out an error is on my side it would be much appreciated