Skip to content

Commit 28cb21a

Browse files
authored
remove wrong ephemeral part from javadocs (#2814)
1 parent fa18ad3 commit 28cb21a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/java/net/dv8tion/jda/api/entities/Message.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ default MessageEditAction editMessageComponents(@Nonnull LayoutComponent... comp
11761176
*
11771177
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MESSAGE UNKNOWN_MESSAGE}
11781178
* <br>The provided {@code messageId} is unknown in this MessageChannel, either due to the id being invalid, or
1179-
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages.</li>
1179+
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages, if the interaction expired.</li>
11801180
*
11811181
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_CHANNEL UNKNOWN_CHANNEL}
11821182
* <br>The request was attempted after the channel was deleted.</li>
@@ -1221,7 +1221,7 @@ default MessageEditAction editMessageComponents(@Nonnull LayoutComponent... comp
12211221
*
12221222
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MESSAGE UNKNOWN_MESSAGE}
12231223
* <br>The provided {@code messageId} is unknown in this MessageChannel, either due to the id being invalid, or
1224-
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages.</li>
1224+
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages, if the interaction expired.</li>
12251225
*
12261226
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_CHANNEL UNKNOWN_CHANNEL}
12271227
* <br>The request was attempted after the channel was deleted.</li>
@@ -1762,7 +1762,7 @@ default MessageCreateAction forwardTo(@Nonnull MessageChannel channel)
17621762
* or lost {@link Permission#MESSAGE_MANAGE}.</li>
17631763
*
17641764
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MESSAGE UNKNOWN_MESSAGE}
1765-
* <br>If the message has already been deleted. This might also be triggered for ephemeral messages.</li>
1765+
* <br>If the message has already been deleted. This might also be triggered for ephemeral messages, if the interaction expired.</li>
17661766
* </ul>
17671767
*
17681768
* @throws MissingAccessException
@@ -1776,8 +1776,8 @@ default MessageCreateAction forwardTo(@Nonnull MessageChannel channel)
17761776
* <ul>
17771777
* <li>If this Message was not sent by the currently logged in account and it was <b>not</b> sent in a
17781778
* {@link GuildChannel GuildChannel}.</li>
1779-
* <li>If this Message is ephemeral</li>
17801779
* <li>If this message type cannot be deleted. (See {@link MessageType#canDelete()})</li>
1780+
* <li>If this Message is ephemeral and the interaction expired.</li>
17811781
* </ul>
17821782
*
17831783
* @return {@link net.dv8tion.jda.api.requests.restaction.AuditableRestAction AuditableRestAction}

src/main/java/net/dv8tion/jda/api/interactions/InteractionHook.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ default boolean isExpired()
175175

176176
/**
177177
* Retrieves the original reply to this interaction.
178-
* <br>This doesn't work for ephemeral messages and will always cause an unknown message error response.
179178
*
180179
* @return {@link RestAction} - Type: {@link Message}
181180
*/
@@ -446,7 +445,7 @@ default WebhookMessageEditAction<Message> editOriginalFormat(@Nonnull String for
446445
*
447446
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MESSAGE UNKNOWN_MESSAGE}
448447
* <br>The provided {@code messageId} is unknown in this MessageChannel, either due to the id being invalid, or
449-
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages.</li>
448+
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages, if the interaction expired.</li>
450449
*
451450
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_CHANNEL UNKNOWN_CHANNEL}
452451
* <br>The request was attempted after the channel was deleted.</li>
@@ -500,7 +499,7 @@ default WebhookMessageEditAction<Message> editOriginalAttachments(@Nonnull Colle
500499
*
501500
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_MESSAGE UNKNOWN_MESSAGE}
502501
* <br>The provided {@code messageId} is unknown in this MessageChannel, either due to the id being invalid, or
503-
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages.</li>
502+
* the message it referred to has already been deleted. This might also be triggered for ephemeral messages, if the interaction expired.</li>
504503
*
505504
* <li>{@link net.dv8tion.jda.api.requests.ErrorResponse#UNKNOWN_CHANNEL UNKNOWN_CHANNEL}
506505
* <br>The request was attempted after the channel was deleted.</li>

0 commit comments

Comments
 (0)