Package io.manebot.chat
Interface ChatEmbed.Builder
-
- Enclosing interface:
- ChatEmbed
public static interface ChatEmbed.Builder
-
-
Method Summary
Modifier and Type Method Description ChatEmbed.Builder
color(java.awt.Color color)
Sets the color of this embed.default ChatEmbed.Builder
description(java.lang.String message)
Sets the text message that this embed encapsulates.default ChatEmbed.Builder
description(java.util.function.Consumer<TextBuilder> textBuilder)
Sets the text message that this embed encapsulates.ChatEmbed.Builder
descriptionRaw(java.lang.String message)
Sets the raw text message that this embed encapsulates.default ChatEmbed.Builder
field(java.lang.String name, java.lang.String value)
Adds a field to the embed.default ChatEmbed.Builder
field(java.lang.String name, java.lang.String value, boolean inline)
Adds a field to the embed.default ChatEmbed.Builder
field(java.lang.String name, java.util.function.Consumer<TextBuilder> value)
Adds a field to the embed.default ChatEmbed.Builder
field(java.lang.String name, java.util.function.Consumer<TextBuilder> value, boolean inline)
Adds a field to the embed.ChatEmbed.Builder
fieldRaw(java.lang.String name, java.lang.String value)
Adds a field to the embed.ChatEmbed.Builder
fieldRaw(java.lang.String name, java.lang.String value, boolean inline)
Adds a field to the embed.default ChatEmbed.Builder
footer(java.lang.String message)
Sets the text message that this embed encapsulates.default ChatEmbed.Builder
footer(java.util.function.Consumer<TextBuilder> textBuilder)
Sets the footer of the embed.ChatEmbed.Builder
footerRaw(java.lang.String footer)
Sets the raw footer of the embed.Chat
getChat()
ChatEmbed.Builder
thumbnail(ChatEmbed.ImageElement thumbnail)
Sets the thumbnail of the chat message.ChatEmbed.Builder
timestamp(java.time.Instant instant)
Sets the timestamp of this embed.ChatEmbed.Builder
timestamp(java.util.Date timestamp)
Sets the timestamp of this embed.default ChatEmbed.Builder
title(java.lang.String title)
Sets the title of this builder.default ChatEmbed.Builder
title(java.util.function.Consumer<TextBuilder> textBuilder)
Sets the title of this builder.ChatEmbed.Builder
titleRaw(java.lang.String title)
Sets the raw title of this builder.
-
-
-
Method Detail
-
getChat
Chat getChat()
-
thumbnail
ChatEmbed.Builder thumbnail(ChatEmbed.ImageElement thumbnail)
Sets the thumbnail of the chat message.- Parameters:
thumbnail
- Thumbnail.- Returns:
- Builder instance.
-
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.
-
-