Search Results for

    Show / Hide Table of Contents

    Struct RoleMention

    Allows @role pings to mention in the message.

    Implements
    IMention
    Namespace: DisCatSharp.Entities
    Assembly: DisCatSharp.dll
    Syntax
    public readonly struct RoleMention : IMention

    Constructors

    | Improve this Doc View Source

    RoleMention(DiscordRole)

    Allows the specific role to be mentioned

    Declaration
    public RoleMention(DiscordRole role)
    Parameters
    Type Name Description
    DiscordRole role
    | Improve this Doc View Source

    RoleMention(UInt64)

    Allows the specific id to be mentioned

    Declaration
    public RoleMention(ulong id)
    Parameters
    Type Name Description
    System.UInt64 id

    Fields

    | Improve this Doc View Source

    All

    Allow the mentioning of all roles. Alias to DisCatSharp.Entities.RoleMention.#ctor constructor.

    Declaration
    public static readonly RoleMention All
    Field Value
    Type Description
    RoleMention

    Properties

    | Improve this Doc View Source

    Id

    Optional Id of the role that is allowed to be mentioned. If null, then all role mentions will be allowed.

    Declaration
    public readonly ulong? Id { get; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>

    Operators

    | Improve this Doc View Source

    Implicit(DiscordRole to RoleMention)

    Declaration
    public static implicit operator RoleMention(DiscordRole role)
    Parameters
    Type Name Description
    DiscordRole role
    Returns
    Type Description
    RoleMention

    Implements

    IMention

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems