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 LegacyInteractionApplicationCommandCallbackSpecaddEmbed(Consumer<? super LegacyEmbedCreateSpec> spec)discord4j.discordjson.json.InteractionApplicationCommandCallbackDataasRequest()LegacyInteractionApplicationCommandCallbackSpecsetAllowedMentions(AllowedMentions allowedMentions)LegacyInteractionApplicationCommandCallbackSpecsetComponents(LayoutComponent... components)LegacyInteractionApplicationCommandCallbackSpecsetComponents(List<LayoutComponent> components)LegacyInteractionApplicationCommandCallbackSpecsetContent(String content)LegacyInteractionApplicationCommandCallbackSpecsetEphemeral(boolean ephemeral)LegacyInteractionApplicationCommandCallbackSpecsetTts(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:
asRequestin interfaceLegacySpec<discord4j.discordjson.json.InteractionApplicationCommandCallbackData>
-
-