VoiceChannels

The voice channels service.

This class allows retrieving available voice channels, joining and leaving a channel, fetching its participants and observing the current voice channel state.

Properties

Link copied to clipboard
val state: StateFlow<VoiceChannelState>

Current state of the voice channels service.

Functions

Link copied to clipboard
suspend fun getChannels(page: Int = 0, pageSize: Int = DEFAULT_PAGE_SIZE): VoiceChannelPage

Fetches the available voice channels.

Link copied to clipboard

Fetches the participants of the specified channel.

Link copied to clipboard
suspend fun join(channel: VoiceChannel)

Joins the specified channel.

Link copied to clipboard
suspend fun leave()

Leaves the currently joined voice channel.

Link copied to clipboard
Link copied to clipboard
suspend fun refresh()

Refreshes the current voice channel state.

Link copied to clipboard
suspend fun refreshCurrentChannel()
Link copied to clipboard
suspend fun switchChannel(channel: VoiceChannel)

Switches from the backend's current channel to channel.

Link copied to clipboard
suspend fun sync()