getChannelByid dosn't worked
Maurice037 opened this issue · comments
Maurice commented
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
David Kartnaller commented
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