Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/main/java/net/dv8tion/jda/api/EmbedBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ public EmbedBuilder setColor(int color)
* (using {@link net.dv8tion.jda.api.entities.channel.middleman.MessageChannel#sendFiles(net.dv8tion.jda.api.utils.FileUpload...) MessageChannel.sendFiles(...)})
* you can reference said image using the specified filename as URI {@code attachment://filename.ext}.
*
* <p><b>Note that the uploaded attachment will not be accessible in the resulting {@linkplain net.dv8tion.jda.api.entities.Message#getAttachments() message's attachments}.</b>
* <br>If you later edit with new attachments, Discord will consider the previous embed's attachments to be deleted.
* You can work around that by keeping the original message's data ({@link net.dv8tion.jda.api.utils.messages.MessageCreateData MessageCreateData} / {@link net.dv8tion.jda.api.utils.messages.MessageEditData MessageEditData}),
* and edit the message with this data, plus the new content.
*
* <p><u>Example</u>
* <pre><code>
* MessageChannel channel; // = reference of a MessageChannel
Expand Down Expand Up @@ -585,6 +590,11 @@ public EmbedBuilder setThumbnail(@Nullable String url)
* (using {@link net.dv8tion.jda.api.entities.channel.middleman.MessageChannel#sendFiles(net.dv8tion.jda.api.utils.FileUpload...) MessageChannel.sendFiles(...)})
* you can reference said image using the specified filename as URI {@code attachment://filename.ext}.
*
* <p><b>Note that the uploaded attachment will not be accessible in the resulting {@linkplain net.dv8tion.jda.api.entities.Message#getAttachments() message's attachments}.</b>
* <br>If you later edit with new attachments, Discord will consider the previous embed's attachments to be deleted.
* You can work around that by keeping the original message's data ({@link net.dv8tion.jda.api.utils.messages.MessageCreateData MessageCreateData} / {@link net.dv8tion.jda.api.utils.messages.MessageEditData MessageEditData}),
* and edit the message with this data, plus the new content.
*
* <p><u>Example</u>
* <pre><code>
* MessageChannel channel; // = reference of a MessageChannel
Expand Down Expand Up @@ -686,6 +696,11 @@ public EmbedBuilder setAuthor(@Nullable String name, @Nullable String url)
* (using {@link net.dv8tion.jda.api.entities.channel.middleman.MessageChannel#sendFiles(net.dv8tion.jda.api.utils.FileUpload...) MessageChannel.sendFiles(...)})
* you can reference said image using the specified filename as URI {@code attachment://filename.ext}.
*
* <p><b>Note that the uploaded attachment will not be accessible in the resulting {@linkplain net.dv8tion.jda.api.entities.Message#getAttachments() message's attachments}.</b>
* <br>If you later edit with new attachments, Discord will consider the previous embed's attachments to be deleted.
* You can work around that by keeping the original message's data ({@link net.dv8tion.jda.api.utils.messages.MessageCreateData MessageCreateData} / {@link net.dv8tion.jda.api.utils.messages.MessageEditData MessageEditData}),
* and edit the message with this data, plus the new content.
*
* <p><u>Example</u>
* <pre><code>
* MessageChannel channel; // = reference of a MessageChannel
Expand Down Expand Up @@ -765,6 +780,11 @@ public EmbedBuilder setFooter(@Nullable String text)
* (using {@link net.dv8tion.jda.api.entities.channel.middleman.MessageChannel#sendFiles(net.dv8tion.jda.api.utils.FileUpload...) MessageChannel.sendFiles(...)})
* you can reference said image using the specified filename as URI {@code attachment://filename.ext}.
*
* <p><b>Note that the uploaded attachment will not be accessible in the resulting {@linkplain net.dv8tion.jda.api.entities.Message#getAttachments() message's attachments}.</b>
* <br>If you later edit with new attachments, Discord will consider the previous embed's attachments to be deleted.
* You can work around that by keeping the original message's data ({@link net.dv8tion.jda.api.utils.messages.MessageCreateData MessageCreateData} / {@link net.dv8tion.jda.api.utils.messages.MessageEditData MessageEditData}),
* and edit the message with this data, plus the new content.
*
* <p><u>Example</u>
* <pre><code>
* MessageChannel channel; // = reference of a MessageChannel
Expand Down