Table of Contents

Class CurrentUserVoiceStateOptions

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class CurrentUserVoiceStateOptions
Inheritance
CurrentUserVoiceStateOptions
Inherited Members

Properties

ChannelId

The ID of the channel the user is currently in.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }

Property Value

ulong?

RequestToSpeakTimestamp

Sets the user's request to speak.

[JsonConverter(typeof(NullableDateTimeOffsetConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("request_to_speak_timestamp")]
public DateTimeOffset? RequestToSpeakTimestamp { get; set; }

Property Value

DateTimeOffset?

Suppress

Toggles the user's suppress state.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("suppress")]
public bool? Suppress { get; set; }

Property Value

bool?

Methods

WithChannelId(ulong?)

The ID of the channel the user is currently in.

public CurrentUserVoiceStateOptions WithChannelId(ulong? channelId)

Parameters

channelId ulong?

Returns

CurrentUserVoiceStateOptions

WithRequestToSpeakTimestamp(DateTimeOffset?)

Sets the user's request to speak.

public CurrentUserVoiceStateOptions WithRequestToSpeakTimestamp(DateTimeOffset? requestToSpeakTimestamp)

Parameters

requestToSpeakTimestamp DateTimeOffset?

Returns

CurrentUserVoiceStateOptions

WithSuppress(bool?)

Toggles the user's suppress state.

public CurrentUserVoiceStateOptions WithSuppress(bool? suppress = true)

Parameters

suppress bool?

Returns

CurrentUserVoiceStateOptions