Get a DbClient by Uid
pauI999 opened this issue · 2 comments
pauI999 commented
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.
Multivit4min commented
//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
pauI999 commented
Thanks for the quick response