Search Results for

    Show / Hide Table of Contents

    Class DiscordCreateGuildRole

    Represents a discord Create Guild role API request model. Docs: https://discord.com/developers/docs/resources/guild#membership-screening-object-json-params

    Inheritance
    System.Object
    DiscordCreateGuildRole
    Implements
    System.IEquatable<DiscordCreateGuildRole>
    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 DiscordCreateGuildRole : IEquatable<DiscordCreateGuildRole>

    Properties

    | Improve this Doc View Source

    Color

    The RGB color value. Default: 0;

    Declaration
    [JsonPropertyName("color")]
    public Color Color { get; set; }
    Property Value
    Type Description
    System.Drawing.Color
    | Improve this Doc View Source

    IsHoisted

    Whether the role should be displayed separately in the sidebar. Default: false;

    Declaration
    [JsonPropertyName("hoist")]
    public bool IsHoisted { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Mentionable

    Whether the role should be mentionable. Default: false;

    Declaration
    [JsonPropertyName("mentionable")]
    public bool Mentionable { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    The name of the role. Default is "new role"

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

    Permissions

    The bitwise value of the enabled/disabled permissions. Default is @everyone permissions in guild.

    Declaration
    [JsonPropertyName("permissions")]
    public DiscordPermission Permissions { get; set; }
    Property Value
    Type Description
    DiscordPermission

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX