Search Results for

    Show / Hide Table of Contents

    Class SelectMenuComponent

    Represents a select menu component defined at https://discord.com/developers/docs/interactions/message-components#select-menu-object

    Inheritance
    Object
    SelectMenuComponent
    Implements
    IMessageComponent
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public class SelectMenuComponent : object, IMessageComponent

    Properties

    | Improve this Doc View Source

    CustomId

    Gets the custom id of the component if possible; otherwise null.

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

    IsDisabled

    Gets whether this menu is disabled or not.

    Declaration
    public bool IsDisabled { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    MaxValues

    Gets the maximum number of items that can be chosen.

    Declaration
    public int MaxValues { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    MinValues

    Gets the minimum number of items that must be chosen.

    Declaration
    public int MinValues { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Options

    Gets the menus options to select from.

    Declaration
    public IReadOnlyCollection<SelectMenuOption> Options { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SelectMenuOption>
    | Improve this Doc View Source

    Placeholder

    Gets the custom placeholder text if nothing is selected.

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

    Type

    Gets the ComponentType of this Message Component.

    Declaration
    public ComponentType Type { get; }
    Property Value
    Type Description
    ComponentType

    Methods

    | Improve this Doc View Source

    ToBuilder()

    Turns this select menu into a builder.

    Declaration
    public SelectMenuBuilder ToBuilder()
    Returns
    Type Description
    SelectMenuBuilder

    A newly create builder with the same properties as this select menu.

    Implements

    IMessageComponent

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2