Table of Contents

Method UpdateCurrentUserVoiceStateAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

UpdateCurrentUserVoiceStateAsync(ulong, ulong, bool?, DateTimeOffset?)

Updates the current user's suppress state in a stage channel.

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

Parameters

guildId ulong

The ID of the guild.

channelId ulong

The ID of the channel.

suppress bool?

Toggles the suppress state.

requestToSpeakTimestamp DateTimeOffset?

Sets the time the user requested to speak.

Returns

Task