Package discord4j.core.spec
Class InteractionApplicationCommandCallbackSpec
- java.lang.Object
-
- discord4j.core.spec.InteractionApplicationCommandCallbackSpec
-
- All Implemented Interfaces:
Spec<discord4j.discordjson.json.InteractionApplicationCommandCallbackData>
@Experimental public class InteractionApplicationCommandCallbackSpec extends Object implements Spec<discord4j.discordjson.json.InteractionApplicationCommandCallbackData>
-
-
Constructor Summary
Constructors Constructor Description InteractionApplicationCommandCallbackSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractionApplicationCommandCallbackSpec
addEmbed(Consumer<? super EmbedCreateSpec> spec)
discord4j.discordjson.json.InteractionApplicationCommandCallbackData
asRequest()
InteractionApplicationCommandCallbackSpec
setAllowedMentions(AllowedMentions allowedMentions)
InteractionApplicationCommandCallbackSpec
setComponents(LayoutComponent... components)
InteractionApplicationCommandCallbackSpec
setComponents(List<LayoutComponent> components)
InteractionApplicationCommandCallbackSpec
setContent(String content)
InteractionApplicationCommandCallbackSpec
setEphemeral(boolean ephemeral)
InteractionApplicationCommandCallbackSpec
setTts(boolean tts)
-
-
-
Method Detail
-
setContent
public InteractionApplicationCommandCallbackSpec setContent(String content)
-
setTts
public InteractionApplicationCommandCallbackSpec setTts(boolean tts)
-
setEphemeral
public InteractionApplicationCommandCallbackSpec setEphemeral(boolean ephemeral)
-
addEmbed
public InteractionApplicationCommandCallbackSpec addEmbed(Consumer<? super EmbedCreateSpec> spec)
-
setAllowedMentions
public InteractionApplicationCommandCallbackSpec setAllowedMentions(@Nullable AllowedMentions allowedMentions)
-
setComponents
public InteractionApplicationCommandCallbackSpec setComponents(LayoutComponent... components)
-
setComponents
public InteractionApplicationCommandCallbackSpec setComponents(List<LayoutComponent> components)
-
-