Table of Contents

Method UpdateCurrentUserVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

UpdateCurrentUserVoiceStateAsync(bool?, DateTimeOffset?)

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

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

Parameters

suppress bool?

Toggles the suppress state.

requestToSpeakTimestamp DateTimeOffset?

Sets the time the user requested to speak.

Returns

Task

Exceptions

ArgumentException

Thrown when the channel is not a stage channel.