Class DiscordCreateGuild
Represents a discord Create Guild API parameter model. Docs: https://discord.com/developers/docs/resources/guild#create-guild-json-params
Inheritance
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.Params.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordCreateGuild
Properties
| Improve this Doc View SourceAfkChannelId
Id for afk channel.
Declaration
[JsonPropertyName("afk_channel_id")]
public ulong AfkChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
AfkTimeout
Afk timeout in seconds.
Declaration
[JsonPropertyName("afk_timeout")]
public int AfkTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Channels
The new guild's channels.
Declaration
[JsonPropertyName("channels")]
public IEnumerable<DiscordChannelData> Channels { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordChannelData> |
Remarks
When using this parameter, the position field is ignored, and none of the default channels are created.
When using this parameter, the id field within each channel object may be set to an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to create GUILD_CATEGORY channels by setting the parent_id field on any children to the category's id field. Category channels must be listed before any children.
DefaultMessageNotifications
The default message notification level.
Declaration
[JsonPropertyName("default_message_notifications")]
public DiscordGuildDefaultMessageNotificationLevel? DefaultMessageNotifications { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildDefaultMessageNotificationLevel> |
ExplicitContentFilter
The explicit content filter level.
Declaration
[JsonPropertyName("verification_level")]
public DiscordGuildExplicitContentFilterLevel? ExplicitContentFilter { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildExplicitContentFilterLevel> |
Icon
Base64 128x128 image for the guild icon.
Declaration
[JsonPropertyName("icon")]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Name of the guild (2-100 characters).
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Region
Voice region id (deprecated).
Declaration
[JsonPropertyName("region")]
[Obsolete("deprecated")]
public string Region { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Roles
The new guild roles.
Declaration
[JsonPropertyName("roles")]
public IEnumerable<DiscordGuildRoleData> Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordGuildRoleData> |
Remarks
When using this parameter, the first member of the list is used to change properties of the guild's @everyone role. If you are trying to bootstrap a guild with additional roles, keep this in mind.
When using this parameter, the required id field within each role object is an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to overwrite a role's permissions in a channel when also passing in channels with the channels array.
SystemChannelFlags
The system channel flags.
Declaration
[JsonPropertyName("system_channel_flags")]
public DiscordSystemChannelFlags SystemChannelFlags { get; set; }
Property Value
Type | Description |
---|---|
DiscordSystemChannelFlags |
SystemChannelId
The id of the channel where guild notices such as welcome messages and boost events are posted.
Declaration
[JsonPropertyName("system_channel_id")]
public ulong SystemChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
VerificationLevel
The DiscordGuildVerificationLevel that members will need.
Declaration
[JsonPropertyName("verification_level")]
public DiscordGuildVerificationLevel? VerificationLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordGuildVerificationLevel> |