Closed SvenC56 closed 4 years ago
You might want to consider using the setPerm option of the channel object https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeakchannel.html#setperm
Hi this works perfectly. Thanks! In the documentation it states that I can set multiple Perms. How do I set the parameter?
Adds a set of specified permissions to a channel. Multiple permissions can be added by providing the two parameters of each permission. A permission can be specified by permid or permsid.
const perms = [
{ perm: 'i_channel_needed_join_power', value: 50 },
{ perm: 'i_channel_needed_modify_power', value: 75 }
]
let channel = await this.ts.channelCreate(name, properties)
await channel.setPerm(perms)
Might not be possible as i mostly just copied the header texts from the official teamspeak query docs
Okay but thanks anyways.
Hey, I was wondering why https://multivit4min.github.io/TS3-NodeJS-Library/globals.html#channeledit the Join Power Option (and some other options) are missing? Am I missing something in the documentation or is this not possible atm?