Interface ChatEmbed.Builder

  • Enclosing interface:
    ChatEmbed

    public static interface ChatEmbed.Builder
    • Method Detail

      • getChat

        Chat getChat()
      • titleRaw

        ChatEmbed.Builder titleRaw​(java.lang.String title)
        Sets the raw title of this builder.
        Parameters:
        title - title to set.
        Returns:
        Builder instance.
      • title

        default ChatEmbed.Builder title​(java.lang.String title)
        Sets the title of this builder.
        Parameters:
        title - title to set.
        Returns:
        Builder instance.
      • title

        default ChatEmbed.Builder title​(java.util.function.Consumer<TextBuilder> textBuilder)
        Sets the title of this builder.
        Parameters:
        textBuilder - text builder to use when building a title.
        Returns:
        Builder instance.
      • descriptionRaw

        ChatEmbed.Builder descriptionRaw​(java.lang.String message)
        Sets the raw text message that this embed encapsulates.
        Parameters:
        message - message to set.
        Returns:
        Builder instance.
      • description

        default ChatEmbed.Builder description​(java.lang.String message)
        Sets the text message that this embed encapsulates.
        Parameters:
        message - message to get.
        Returns:
        Builder instance.
      • description

        default ChatEmbed.Builder description​(java.util.function.Consumer<TextBuilder> textBuilder)
        Sets the text message that this embed encapsulates.
        Parameters:
        textBuilder - message to set.
        Returns:
        Builder instance.
      • footerRaw

        ChatEmbed.Builder footerRaw​(java.lang.String footer)
        Sets the raw footer of the embed.
        Parameters:
        footer - raw footer to set.
        Returns:
        Builder instance.
      • footer

        default ChatEmbed.Builder footer​(java.lang.String message)
        Sets the text message that this embed encapsulates.
        Parameters:
        message - footer to set.
        Returns:
        Builder instance.
      • footer

        default ChatEmbed.Builder footer​(java.util.function.Consumer<TextBuilder> textBuilder)
        Sets the footer of the embed.
        Parameters:
        textBuilder - text builder to set footer from.
        Returns:
        Builder instance.
      • timestamp

        ChatEmbed.Builder timestamp​(java.util.Date timestamp)
        Sets the timestamp of this embed.
        Parameters:
        timestamp - timestamp to set.
        Returns:
        Builder instance.
      • timestamp

        ChatEmbed.Builder timestamp​(java.time.Instant instant)
        Sets the timestamp of this embed.
        Parameters:
        instant - timestamp to set.
        Returns:
        Builder instance.
      • color

        ChatEmbed.Builder color​(java.awt.Color color)
        Sets the color of this embed.
        Parameters:
        color - color to set.
        Returns:
        Builder instance.
      • field

        default ChatEmbed.Builder field​(java.lang.String name,
                                        java.lang.String value)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - field value to add.
        Returns:
        Builder instance.
      • field

        default ChatEmbed.Builder field​(java.lang.String name,
                                        java.lang.String value,
                                        boolean inline)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - field value to add.
        inline - inline
        Returns:
        Builder instance.
      • field

        default ChatEmbed.Builder field​(java.lang.String name,
                                        java.util.function.Consumer<TextBuilder> value)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - field value to add.
        Returns:
        Builder instance.
      • field

        default ChatEmbed.Builder field​(java.lang.String name,
                                        java.util.function.Consumer<TextBuilder> value,
                                        boolean inline)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - field value to add.
        inline - inline
        Returns:
        Builder instance.
      • fieldRaw

        ChatEmbed.Builder fieldRaw​(java.lang.String name,
                                   java.lang.String value)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - raw field value to add.
        Returns:
        Builder instance.
      • fieldRaw

        ChatEmbed.Builder fieldRaw​(java.lang.String name,
                                   java.lang.String value,
                                   boolean inline)
        Adds a field to the embed.
        Parameters:
        name - field name to add.
        value - raw field value to add.
        inline - inline
        Returns:
        Builder instance.