nikeee / node-ts

Node.js TeamSpeak® 3 Server Query client implemented in TypeScript
GNU Lesser General Public License v3.0
38 stars 6 forks source link

Fix incorrect parameter name #66

Closed cm8263 closed 2 months ago

cm8263 commented 2 months ago

Per the spec, the parameter name needs to be id, not channelId.

If you use subscribeChannelEvents() right now, you will get the following error:

{
  cmd: 'servernotifyregister',
  options: [],
  text: 'servernotifyregister event=channel channelId=123',
  parameters: { event: 'channel', channelId: 123},
  error: { id: 1539, msg: 'parameter not found' },
  response: null,
  rawResponse: null
}
nikeee commented 2 months ago

Released in v6.1.2