Method UpdateVoiceStateAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
UpdateVoiceStateAsync(DiscordChannel, bool?)
Updates the member's suppress state in a stage channel.
public Task UpdateVoiceStateAsync(DiscordChannel channel, bool? suppress)
Parameters
channel
DiscordChannelThe channel the member is currently in.
suppress
bool?Toggles the member's suppress state.
Returns
Exceptions
- ArgumentException
Thrown when the channel in not a voice channel.