Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
149 stars 18 forks source link

Missing Channel Join Power #106

Closed SvenC56 closed 4 years ago

SvenC56 commented 4 years ago

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?

Multivit4min commented 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

SvenC56 commented 4 years ago

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)
Multivit4min commented 4 years ago

Might not be possible as i mostly just copied the header texts from the official teamspeak query docs

SvenC56 commented 4 years ago

Okay but thanks anyways.