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 20 forks source link

Issues connection to a channel. #180

Closed SticksDev closed 2 years ago

SticksDev commented 2 years ago

Hi! I'm abit lost of how to make the client connect to a channel. How would I do that?

Thanks!

Multivit4min commented 2 years ago

You can use this function here

note: this is a query client not a real client

SticksDev commented 2 years ago

Okay, thank you. One more question, when using const user = await teamspeak.getClientByDbid(event.args.dbid) with any dbid, it always returns the bots user.

For example DBID 3 is me, while it says it's the bots. Ideas?

Multivit4min commented 2 years ago

I guess you created a query login with your TeamSpeak User? Then the Database ID of the Query Client and your TeamSpeak User is the same.

SticksDev commented 2 years ago

Yeah, it was an incorrect call on my end. Thanks for all of your help!