Search Results for

    Show / Hide Table of Contents

    Interface IDiscordSelectOption

    Represents a discord Select Option Structure API model. Docs: https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure

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

    Properties

    | Improve this Doc View Source

    Default

    Will render this option as selected by default.

    Declaration
    bool? Default { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    Description

    The user-facing name of the option, max 100 characters.

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

    Emoji

    The emoji used. Containing the id, name, and animated.

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

    Label

    The user-facing name of the option, max 100 characters.

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

    Value

    The dev-define value of the option, max 100 characters.

    Declaration
    string Value { get; set; }
    Property Value
    Type Description
    String

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

    The converted DiscordSelectOptionData.

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