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