Search Results for

    Show / Hide Table of Contents

    Interface IDiscordAllowedMentions

    Represents a discord Allowed Mentions Structure API model. Docs: https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure

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

    Properties

    | Improve this Doc View Source

    Allowed

    an array of allowed mention types to parse from the content.

    Declaration
    IEnumerable<DiscordAllowedMentionsType> Allowed { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordAllowedMentionsType>
    | Improve this Doc View Source

    AllowedRoles

    Array of role_ids to mention (Max size of 100).

    Declaration
    IEnumerable<ulong> AllowedRoles { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.UInt64>
    | Improve this Doc View Source

    AllowedUsers

    Array of role_ids to mention (Max size of 100).

    Declaration
    IEnumerable<ulong> AllowedUsers { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.UInt64>
    | Improve this Doc View Source

    ShouldReplyMentionsAuthor

    For replies, whether to mention the author of the message being replied to (default false).

    Declaration
    bool ShouldReplyMentionsAuthor { get; set; }
    Property Value
    Type Description
    Boolean

    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
    DiscordAllowedMentionsData ToDataModel()
    Returns
    Type Description
    DiscordAllowedMentionsData

    The converted DiscordAllowedMentionsData.

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