Interface ReplyCallbackAction
- All Superinterfaces:
FluentRestAction<InteractionHook,
,ReplyCallbackAction> InteractionCallbackAction<InteractionHook>
,MessageCreateRequest<ReplyCallbackAction>
,MessageData
,MessageRequest<ReplyCallbackAction>
,RestAction<InteractionHook>
public interface ReplyCallbackAction
extends InteractionCallbackAction<InteractionHook>, MessageCreateRequest<ReplyCallbackAction>, FluentRestAction<InteractionHook,ReplyCallbackAction>
A
You can use
InteractionCallbackAction
which can be used to send a message reply for an interaction.
You can use
setEphemeral(boolean)
to hide this message from other users.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.requests.restaction.interactions.InteractionCallbackAction
InteractionCallbackAction.ResponseType
-
Method Summary
Modifier and TypeMethodDescriptionCloses all owned resources used for this request.setEphemeral
(boolean ephemeral) Set whether this message should be visible to other users.Methods inherited from interface net.dv8tion.jda.api.requests.FluentRestAction
addCheck, deadline, setCheck, timeout
Methods inherited from interface net.dv8tion.jda.api.utils.messages.MessageCreateRequest
addActionRow, addActionRow, addComponents, addComponents, addContent, addEmbeds, addEmbeds, addFiles, addFiles, applyData, applyEditData, applyMessage, getAttachments, getPoll, setPoll, setSuppressedNotifications, setTTS, setVoiceMessage
Methods inherited from interface net.dv8tion.jda.api.utils.messages.MessageData
getAllowedMentions, getComponents, getContent, getEmbeds, getMentionedRoles, getMentionedUsers, isMentionRepliedUser, isSuppressEmbeds
Methods inherited from interface net.dv8tion.jda.api.utils.messages.MessageRequest
mention, mention, mentionRepliedUser, mentionRoles, mentionRoles, mentionRoles, mentionUsers, mentionUsers, mentionUsers, setActionRow, setActionRow, setAllowedMentions, setComponents, setComponents, setContent, setEmbeds, setEmbeds, setFiles, setFiles, setSuppressEmbeds
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
closeResources
Description copied from interface:InteractionCallbackAction
Closes all owned resources used for this request.This closes all files added, if applicable.
- Specified by:
closeResources
in interfaceInteractionCallbackAction<InteractionHook>
- Returns:
- This instance for chaining.
-
setEphemeral
Set whether this message should be visible to other users.
When a message is ephemeral, it will only be visible to the user that used the interaction.Ephemeral messages have some limitations and will be removed once the user restarts their client.
Limitations:- Cannot be reacted to
- Can only be retrieved using the
InteractionHook
- In guilds the bot is not a member of,
if the member is unable to
use external application
, this usually happens for user-installed commands - If the interaction user is unable to
send messages
- If the content contains elements the user does not have the permission to send (like files or embeds)
- If the content triggered AutoMod
- Parameters:
ephemeral
- True, if this message should be invisible for other users- Returns:
- The same reply action, for chaining convenience
-