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

getChannelByid dosn't worked #144

Closed Maurice037 closed 3 years ago

Maurice037 commented 3 years ago

hello i try to work with the getChannelbyid fnc but she is dosn't work here is my code(the channel is exists

   (async () => {
        const channelone = await ts3.getChannelById(28);
        const channeltwo = await ts3.getChannelById(29);
        console.log(channelone);
        })
        ()

the console log this : undefined

Multivit4min commented 3 years ago

Please read the documentation carefully: https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.html#getchannelbyid

if you check the first parameter it accepts you can see it is: https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeakchannel.html#channeltype

which is a string or a TeamSpeakChannel, but you provided a number

also please as already mentioned use the Issue Template when creating an Issue

image