Class CurrentUserVoiceStateOptions
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
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
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
WithRequestToSpeakTimestamp(DateTimeOffset?)
Sets the user's request to speak.
public CurrentUserVoiceStateOptions WithRequestToSpeakTimestamp(DateTimeOffset? requestToSpeakTimestamp)
Parameters
requestToSpeakTimestamp
DateTimeOffset?
Returns
WithSuppress(bool?)
Toggles the user's suppress state.
public CurrentUserVoiceStateOptions WithSuppress(bool? suppress = true)
Parameters
suppress
bool?