Voice API

v1/connectUserVoice: Register user voice connection

Registers a user's voice connection allowing them to use voice chat features.

Input:

{
  "token": "",
  "peerId": ""
}

Output:

{ "success": true }

v1/disconnectUserVoice: Unregister user voice connection

Unregisters a user's voice connection.

Input:

{ "token": "" }

Output:

{ "success": true }

v1/connectToVoiceChannel: Connect to voice channel

Connects the user to the given voice channel.

Input:

{
  "token": "",
  "channel": "",
}

Output:

{ "success": true }

v1/leaveVoiceChannel: Leave current voice channel

Leaves the user's current voice channel.

Input:

{ "token": "" }

Output:

{ "success": true }