Skip to content

Commit

Permalink
Update the docs for setEphemeral (#2286)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Oct 22, 2022
1 parent 99cdb2b commit bb138ea
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -16,6 +16,8 @@

package net.dv8tion.jda.api.requests.restaction;

import net.dv8tion.jda.api.interactions.InteractionHook;
import net.dv8tion.jda.api.interactions.callbacks.IReplyCallback;
import net.dv8tion.jda.api.requests.FluentRestAction;
import net.dv8tion.jda.api.utils.messages.MessageCreateRequest;

Expand All @@ -31,8 +33,6 @@
* <p><u>When this RestAction has been executed all provided files will be closed.</u>
* <br>Note that the garbage collector also frees opened file streams when it finalizes the stream object.
*
* @since 4.3.0
*
* @see net.dv8tion.jda.api.entities.WebhookClient#sendMessage(String)
*/
// TODO: WebhookMessage type (no channel/guild attached)
Expand Down Expand Up @@ -75,12 +75,14 @@ public interface WebhookMessageCreateAction<T> extends MessageCreateRequest<Webh
* <p>Ephemeral messages have some limitations and will be removed once the user restarts their client.
* <br>Limitations:
* <ul>
* <li>Cannot contain any files/attachments</li>
* <li>Cannot be reacted to</li>
* <li>Cannot be retrieved</li>
* </ul>
*
* <p>This only works on {@link net.dv8tion.jda.api.interactions.InteractionHook InteractionHooks}!
* <p>This only works on {@link InteractionHook InteractionHooks}!
* For a {@link IReplyCallback#deferReply() deferred reply}, this is not supported. When a reply is deferred,
* the very first message sent through the {@link InteractionHook}, inherits the ephemeral state of the initial reply.
* To send an ephemeral deferred reply, you must use {@link IReplyCallback#deferReply(boolean) deferReply(true)} instead.
*
* @param ephemeral
* True, if this message should be invisible for other users
Expand Down

0 comments on commit bb138ea

Please sign in to comment.