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

customInfo wrong return type #191

Closed maxpain closed 1 year ago

maxpain commented 1 year ago

Hello. customInfo has the wrong return typescript type. Actually, this function returns an array.

customInfo(client: TeamSpeakClient.ClientType): Promise<Response.CustomInfo>;
Multivit4min commented 1 year ago

should be fixed in https://github.com/Multivit4min/TS3-NodeJS-Library/commit/5df10160ba695830f1dd20d471582a87744b2361 also the function should now return an empty array if no result has been found instead of throwing an error