Interface ButtonBuilderDelegate

    • Method Detail

      • copy

        void copy​(Button button)
        Copy a button's values into the builder.
        Parameters:
        button - The button to copy.
      • setEmoji

        void setEmoji​(CustomEmoji emoji)
        Set the button's emoji to a custom emoji.
        Parameters:
        emoji - The custom emoji.
      • setEmoji

        void setEmoji​(String unicode)
        Set the button's emoji based on a unicode character.
        Parameters:
        unicode - The unicode emoji character.
      • setEmoji

        void setEmoji​(Emoji emoji)
        Set the button's emoji.
        Parameters:
        emoji - The button's emoji.
      • getStyle

        ButtonStyle getStyle​()
        Get the button's style.
        Returns:
        The button's style.
      • getLabel

        String getLabel​()
        Get the button's label.
        Returns:
        The button's label.
      • getCustomId

        String getCustomId​()
        Get the button's component identifier.
        Returns:
        The button's component identifier.
      • getUrl

        String getUrl​()
        Get the button's clickable URL.
        Returns:
        The button's clickable URL.
      • isDisabled

        Boolean isDisabled​()
        Get whether or not the button is disabled.
        Returns:
        Whether or not the button is disabled.
      • getEmoji

        Emoji getEmoji​()
        Get the button's emoji.
        Returns:
        The button's emoji.
      • setStyle

        void setStyle​(ButtonStyle style)
        Set the button's style.
        Parameters:
        style - The style of the button.
      • setLabel

        void setLabel​(String label)
        Set the button's label.
        Parameters:
        label - The button's label.
      • setCustomId

        void setCustomId​(String customId)
        Set the button's custom ID.
        Parameters:
        customId - The button's identifier.
      • setUrl

        void setUrl​(String url)
        Set the button's URL.
        Parameters:
        url - The button's clickable URL.
      • setDisabled

        void setDisabled​(Boolean isDisabled)
        Set the button to disabled.
        Parameters:
        isDisabled - Whether the button is disabled or not.
      • build

        Button build​()
        Creates a Button instance with the given values.
        Returns:
        The created button instance.