• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved Scripting - channelCreate() will not put the channel in the correct order

Status
Not open for further replies.

PyroManiac

New Member
Ok so first of all please correct me if I am posting in the wrong section. Help is much appreciated! So I am currently developing a script and I cannot figure out why this doesn't work. This is the function I used in order to create the channel along with the syntax:

channelCreate({ name: "TEST STUFF", parent: 0, perm: 1, position: 589, codec: Number(ChannelCodec), quality: Number(ChannelQuality) + 1, description: ChannelDescription});

I believe the position is supposed to be the id of the channel it's supposed to be below? I also tried the channel.moveTo(0, 589) (with channel being equal to backend.getChannelByName("TEST STUFF")) but that also didn't work along with changing the "position: 589" part to "order: 589" in the channelCreate() function with no result. Help will be much loved <3
 
Status
Not open for further replies.
Top