Table of Contents

Method UpdateCurrentUserVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

UpdateCurrentUserVoiceStateAsync(bool?, DateTimeOffset?, CancellationToken)

Updates the current user's suppress state in this channel, if stage channel.

public Task UpdateCurrentUserVoiceStateAsync(bool? suppress, DateTimeOffset? requestToSpeakTimestamp = null, CancellationToken cancellationToken = default)

Parameters

suppress bool?

Toggles the suppress state.

requestToSpeakTimestamp DateTimeOffset?

Sets the time the user requested to speak.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

Exceptions

ArgumentException

Thrown when the channel is not a stage channel.