seyfert
    Preparing search index...

    Class Checkbox

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    data: Partial<TYPE> = {}

    Methods

    • Sets the custom ID for the checkbox.

      Parameters

      • customId: string

        The custom ID for the checkbox.

      Returns Checkbox

      The current Checkbox instance.

    • Sets whether the checkbox is selected by default.

      Parameters

      • value: boolean

        Whether the checkbox is selected by default.

      Returns Checkbox

      The current Checkbox instance.

    • Sets the ID for the checkbox.

      Parameters

      • id: number

        The ID for the checkbox.

      Returns Checkbox

      The current Checkbox instance.

      The ID is used by Discord to identify the component when an interaction is received. It must be unique within the message.