Table of Contents

Class GuildUserOptions

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class GuildUserOptions : CurrentGuildUserOptions
Inheritance
GuildUserOptions
Inherited Members

Properties

ChannelId

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

Property Value

ulong?

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

GuildUserFlags?

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

IEnumerable<ulong>

TimeOutUntil

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

Property Value

DateTimeOffset?

Methods

AddRoleIds(IEnumerable<ulong>)

public GuildUserOptions AddRoleIds(IEnumerable<ulong> roleIds)

Parameters

roleIds IEnumerable<ulong>

Returns

GuildUserOptions

AddRoleIds(params ulong[])

public GuildUserOptions AddRoleIds(params ulong[] roleIds)

Parameters

roleIds ulong[]

Returns

GuildUserOptions

WithChannelId(ulong?)

public GuildUserOptions WithChannelId(ulong? channelId)

Parameters

channelId ulong?

Returns

GuildUserOptions

WithDeafened(bool?)

public GuildUserOptions WithDeafened(bool? deafened = true)

Parameters

deafened bool?

Returns

GuildUserOptions

WithGuildFlags(GuildUserFlags?)

public GuildUserOptions WithGuildFlags(GuildUserFlags? guildFlags)

Parameters

guildFlags GuildUserFlags?

Returns

GuildUserOptions

WithMuted(bool?)

public GuildUserOptions WithMuted(bool? muted = true)

Parameters

muted bool?

Returns

GuildUserOptions

WithNickname(string?)

New nickname, empty to remove nickname.

public GuildUserOptions WithNickname(string? nickname)

Parameters

nickname string

Returns

GuildUserOptions

WithRoleIds(IEnumerable<ulong>?)

public GuildUserOptions WithRoleIds(IEnumerable<ulong>? roleIds)

Parameters

roleIds IEnumerable<ulong>

Returns

GuildUserOptions

WithTimeOutUntil(DateTimeOffset?)

public GuildUserOptions WithTimeOutUntil(DateTimeOffset? timeOutUntil)

Parameters

timeOutUntil DateTimeOffset?

Returns

GuildUserOptions