Table of Contents

Class GuildProperties

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

Constructors

GuildProperties(string)

public GuildProperties(string name)

Parameters

name string

Properties

AfkChannelId

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

Property Value

ulong?

AfkTimeout

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("afk_timeout")]
public int? AfkTimeout { get; set; }

Property Value

int?

Channels

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("channels")]
public IEnumerable<GuildChannelProperties>? Channels { get; set; }

Property Value

IEnumerable<GuildChannelProperties>

ContentFilter

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("explicit_content_filter")]
public ContentFilter? ContentFilter { get; set; }

Property Value

ContentFilter?

DefaultMessageNotificationLevel

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("default_message_notifications")]
public DefaultMessageNotificationLevel? DefaultMessageNotificationLevel { get; set; }

Property Value

DefaultMessageNotificationLevel?

Icon

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("icon")]
public ImageProperties? Icon { get; set; }

Property Value

ImageProperties?

Name

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string

Roles

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("roles")]
public IEnumerable<RoleProperties>? Roles { get; set; }

Property Value

IEnumerable<RoleProperties>

SystemChannelFlags

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("system_channel_flags")]
public SystemChannelFlags? SystemChannelFlags { get; set; }

Property Value

SystemChannelFlags?

SystemChannelId

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

Property Value

ulong?

VerificationLevel

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("verification_level")]
public VerificationLevel? VerificationLevel { get; set; }

Property Value

VerificationLevel?

Methods

AddChannels(params GuildChannelProperties[])

public GuildProperties AddChannels(params GuildChannelProperties[] channels)

Parameters

channels GuildChannelProperties[]

Returns

GuildProperties

AddChannels(IEnumerable<GuildChannelProperties>)

public GuildProperties AddChannels(IEnumerable<GuildChannelProperties> channels)

Parameters

channels IEnumerable<GuildChannelProperties>

Returns

GuildProperties

AddRoles(params RoleProperties[])

public GuildProperties AddRoles(params RoleProperties[] roles)

Parameters

roles RoleProperties[]

Returns

GuildProperties

AddRoles(IEnumerable<RoleProperties>)

public GuildProperties AddRoles(IEnumerable<RoleProperties> roles)

Parameters

roles IEnumerable<RoleProperties>

Returns

GuildProperties

WithAfkChannelId(ulong?)

public GuildProperties WithAfkChannelId(ulong? afkChannelId)

Parameters

afkChannelId ulong?

Returns

GuildProperties

WithAfkTimeout(int?)

public GuildProperties WithAfkTimeout(int? afkTimeout)

Parameters

afkTimeout int?

Returns

GuildProperties

WithChannels(IEnumerable<GuildChannelProperties>?)

public GuildProperties WithChannels(IEnumerable<GuildChannelProperties>? channels)

Parameters

channels IEnumerable<GuildChannelProperties>

Returns

GuildProperties

WithContentFilter(ContentFilter?)

public GuildProperties WithContentFilter(ContentFilter? contentFilter)

Parameters

contentFilter ContentFilter?

Returns

GuildProperties

WithDefaultMessageNotificationLevel(DefaultMessageNotificationLevel?)

public GuildProperties WithDefaultMessageNotificationLevel(DefaultMessageNotificationLevel? defaultMessageNotificationLevel)

Parameters

defaultMessageNotificationLevel DefaultMessageNotificationLevel?

Returns

GuildProperties

WithIcon(ImageProperties?)

public GuildProperties WithIcon(ImageProperties? icon)

Parameters

icon ImageProperties?

Returns

GuildProperties

WithName(string)

public GuildProperties WithName(string name)

Parameters

name string

Returns

GuildProperties

WithRoles(IEnumerable<RoleProperties>?)

public GuildProperties WithRoles(IEnumerable<RoleProperties>? roles)

Parameters

roles IEnumerable<RoleProperties>

Returns

GuildProperties

WithSystemChannelFlags(SystemChannelFlags?)

public GuildProperties WithSystemChannelFlags(SystemChannelFlags? systemChannelFlags)

Parameters

systemChannelFlags SystemChannelFlags?

Returns

GuildProperties

WithSystemChannelId(ulong?)

public GuildProperties WithSystemChannelId(ulong? systemChannelId)

Parameters

systemChannelId ulong?

Returns

GuildProperties

WithVerificationLevel(VerificationLevel?)

public GuildProperties WithVerificationLevel(VerificationLevel? verificationLevel)

Parameters

verificationLevel VerificationLevel?

Returns

GuildProperties