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
channelDiscordChannelThe channel the member is currently in.
suppressbool?Toggles the member's suppress state.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- ArgumentException
Thrown when the channel in not a voice channel.