Package tv.phantombot.discord.util
Class EmbedBuilder
java.lang.Object
tv.phantombot.discord.util.EmbedBuilder
- Author:
- gmt2001
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendDesc(String text) appendDescription(String text) appendField(String name, String value, boolean inline) discord4j.core.spec.EmbedCreateSpecbuild()booleanintintwithAuthorIcon(String url) withAuthorName(String name) withAuthorUrl(String url) withColor(int color) withColor(int r, int g, int b) withColor(discord4j.rest.util.Color color) withDescription(String text) withFooterIcon(String url) withFooterText(String text) withThumbnail(String url) withTimestamp(long millis) withTimestamp(Instant instant)
-
Constructor Details
-
EmbedBuilder
public EmbedBuilder()
-
-
Method Details
-
withTitle
-
withUrl
-
withColor
-
withColor
-
withColor
-
withColor
-
withTimestamp
-
withTimestamp
-
withAuthorName
-
withAuthorIcon
-
withAuthorUrl
-
withDescription
-
withDesc
-
appendDescription
-
appendDesc
-
withThumbnail
-
withImage
-
appendField
-
clearFields
-
getFieldCount
public int getFieldCount() -
getTotalVisibleCharacters
public int getTotalVisibleCharacters() -
doesExceedCharacterLimit
public boolean doesExceedCharacterLimit() -
build
public discord4j.core.spec.EmbedCreateSpec build()
-