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

Get a DbClient by Uid

pauI999 opened this issue · comments

Hello, I wanted to ask if there is a way to get a DbClientEntry by a Uid. I used a Java TS3 Api in which this was possible. I wonder if there is a way here too.

//you need to get the "cldbid" first with
const result = await teamspeak.clientDBFind(uid, true)
if (result.length === 0) throw new Error(`no client found with ${uid}`)
//and then get the user from the database
//variable "client" will now hold the database client
const [client] = await teamspeak.clientDbInfo(result[0].cldbid)

https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.html#clientdbfind

Thanks for the quick response