Class GuildUserOptions
public class GuildUserOptions : CurrentGuildUserOptions
- Inheritance
-
GuildUserOptions
- Inherited Members
Properties
ChannelId
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }
Property Value
Deafened
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("deaf")]
public bool? Deafened { get; set; }
Property Value
- bool?
GuildFlags
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("flags")]
public GuildUserFlags? GuildFlags { get; set; }
Property Value
Muted
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("mute")]
public bool? Muted { get; set; }
Property Value
- bool?
RoleIds
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("roles")]
public IEnumerable<ulong>? RoleIds { get; set; }
Property Value
TimeOutUntil
[JsonConverter(typeof(NullableDateTimeOffsetConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("communication_disabled_until")]
public DateTimeOffset? TimeOutUntil { get; set; }
Property Value
Methods
AddRoleIds(IEnumerable<ulong>)
public GuildUserOptions AddRoleIds(IEnumerable<ulong> roleIds)
Parameters
roleIds
IEnumerable<ulong>
Returns
AddRoleIds(params ulong[])
public GuildUserOptions AddRoleIds(params ulong[] roleIds)
Parameters
roleIds
ulong[]
Returns
WithChannelId(ulong?)
public GuildUserOptions WithChannelId(ulong? channelId)
Parameters
channelId
ulong?
Returns
WithDeafened(bool?)
public GuildUserOptions WithDeafened(bool? deafened = true)
Parameters
deafened
bool?
Returns
WithGuildFlags(GuildUserFlags?)
public GuildUserOptions WithGuildFlags(GuildUserFlags? guildFlags)
Parameters
guildFlags
GuildUserFlags?
Returns
WithMuted(bool?)
public GuildUserOptions WithMuted(bool? muted = true)
Parameters
muted
bool?
Returns
WithNickname(string?)
New nickname, empty to remove nickname.
public GuildUserOptions WithNickname(string? nickname)
Parameters
nickname
string
Returns
WithRoleIds(IEnumerable<ulong>?)
public GuildUserOptions WithRoleIds(IEnumerable<ulong>? roleIds)
Parameters
roleIds
IEnumerable<ulong>
Returns
WithTimeOutUntil(DateTimeOffset?)
public GuildUserOptions WithTimeOutUntil(DateTimeOffset? timeOutUntil)
Parameters
timeOutUntil
DateTimeOffset?