Channel - Rantanen/node-mumble GitHub Wiki

Channel(data, client)

Params

  • data Object - Channel data.
  • client MumbleClient - Mumble client that owns the channel.

Single channel on the server.

channel.addSubChannel(name, options)

Adds a sub-channel to the current channel.

Params

  • name string - New sub-channel name.
  • options Object - Channel options.

channel.getPermissions(callback)

Retrieves the channel permissions

Params

  • callback function - Result callback

channel.join()

Join the channel

channel.remove()

Removes the current channel.

channel.sendMessage(message)

Sends a message to the channel.

Params

  • message string - The message to send.

channel.children

Child channels

channel.links

Linked channels

channel.users

Users in the channel

Event: 'links-add'

Emitted when this channel is linked to new ones.

Params

Also available through the client channel-links-add event.

Event: 'links-remove'

Emitted when channel links are removed.

Params

Also available through the client channel-links-remove event.

Event: 'move'

Emitted when the channel is moved in the channel hierarchy.

Params

  • oldParent Channel - Old parent channel.
  • newParent Channel - New parent channel.

Also available through the client channel-move event.

Event: 'permissions-update'

Emitted when the channel permissions are updated.

Params

  • query Permissions - The new permissions

Also available through the client channel-permissions-update event.

Event: 'remove'

Emitted when the channel is removed from the channel tree.

Descripion: Also available through the client channel-remove event.

⚠️ **GitHub.com Fallback** ⚠️