Method UpdateVoiceStateAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.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
- Task
Exceptions
- ArgumentException
Thrown when the channel in not a voice channel.