Search Results for

    Show / Hide Table of Contents

    Class DiscordCreateGuild

    Represents a discord Create Guild API parameter model. Docs: https://discord.com/developers/docs/resources/guild#create-guild-json-params

    Inheritance
    System.Object
    DiscordCreateGuild
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.Params.Guild
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordCreateGuild

    Properties

    | Improve this Doc View Source

    AfkChannelId

    Id for afk channel.

    Declaration
    [JsonPropertyName("afk_channel_id")]
    public ulong AfkChannelId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    AfkTimeout

    Afk timeout in seconds.

    Declaration
    [JsonPropertyName("afk_timeout")]
    public int AfkTimeout { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    DefaultMessageNotifications

    The default message notification level.

    Declaration
    [JsonPropertyName("default_message_notifications")]
    public DiscordGuildDefaultMessageNotificationLevel? DefaultMessageNotifications { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordGuildDefaultMessageNotificationLevel>
    | Improve this Doc View Source

    ExplicitContentFilter

    The explicit content filter level.

    Declaration
    [JsonPropertyName("verification_level")]
    public DiscordGuildExplicitContentFilterLevel? ExplicitContentFilter { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordGuildExplicitContentFilterLevel>
    | Improve this Doc View Source

    Icon

    Base64 128x128 image for the guild icon.

    Declaration
    [JsonPropertyName("icon")]
    public string Icon { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Name

    Name of the guild (2-100 characters).

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Region

    Voice region id (deprecated).

    Declaration
    [JsonPropertyName("region")]
    [Obsolete("deprecated")]
    public string Region { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    SystemChannelFlags

    The system channel flags.

    Declaration
    [JsonPropertyName("system_channel_flags")]
    public DiscordSystemChannelFlags SystemChannelFlags { get; set; }
    Property Value
    Type Description
    DiscordSystemChannelFlags
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    VerificationLevel

    The DiscordGuildVerificationLevel that members will need.

    Declaration
    [JsonPropertyName("verification_level")]
    public DiscordGuildVerificationLevel? VerificationLevel { get; set; }
    Property Value
    Type Description
    System.Nullable<DiscordGuildVerificationLevel>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX