Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query

Home Page:https://multivit4min.github.io/TS3-NodeJS-Library/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getChannelByid dosn't worked

Maurice037 opened this issue · comments

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

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