Search Results for

    Show / Hide Table of Contents

    Interface IDiscordGuildRole

    Represents a discord Role Structure API model. Docs: https://discord.com/developers/docs/topics/permissions#role-object-role-structure

    Namespace: Color_Chan.Discord.Core.Common.Models.Guild
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public interface IDiscordGuildRole

    Properties

    | Improve this Doc View Source

    Color

    Integer representation of hexadecimal color code.

    Declaration
    Color Color { get; set; }
    Property Value
    Type Description
    System.Drawing.Color
    | Improve this Doc View Source

    Id

    Role id.

    Declaration
    ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    IsHoisted

    If this role is pinned in the user listing.

    Declaration
    bool IsHoisted { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Managed

    Whether this role is managed by an integration

    Declaration
    bool Managed { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Mentionable

    Whether this role is mentionable

    Declaration
    bool Mentionable { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    Role name.

    Declaration
    string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Permissions

    Permission bit set.

    Declaration
    DiscordPermission Permissions { get; set; }
    Property Value
    Type Description
    DiscordPermission
    | Improve this Doc View Source

    Position

    Position of this role.

    Declaration
    int Position { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    ToDataModel()

    Converts the model back to a discord data model so that it can be send to discord.

    Declaration
    DiscordGuildRoleData ToDataModel()
    Returns
    Type Description
    DiscordGuildRoleData

    The converted DiscordGuildRoleData.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX