Table of Contents

Method UpdateVoiceStateAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

UpdateVoiceStateAsync(DiscordChannel, bool?, CancellationToken)

Updates the member's suppress state in a stage channel.

public Task UpdateVoiceStateAsync(DiscordChannel channel, bool? suppress, CancellationToken cancellationToken = default)

Parameters

channel DiscordChannel

The channel the member is currently in.

suppress bool?

Toggles the member's suppress state.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

Exceptions

ArgumentException

Thrown when the channel in not a voice channel.