seyfert
    Preparing search index...

    Class Button

    Represents a button component.

    The type of the button component.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Partial<APIButtonComponent> = {}

    Methods

    • Sets the custom ID for the button.

      Parameters

      • id: string

        The custom ID to set.

      Returns Button

      The modified Button instance.

    • Sets the disabled state of the button.

      Parameters

      • disabled: boolean = true

        Whether the button should be disabled or not.

      Returns Button

      The modified Button instance.

    • Sets the emoji for the button.

      Parameters

      • emoji: EmojiResolvable

        The emoji to set.

      Returns Button

      The modified Button instance.