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
suppressbool?Toggles the suppress state.
requestToSpeakTimestampDateTimeOffset?Sets the time the user requested to speak.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- ArgumentException
Thrown when the channel is not a stage channel.