Package org.javacord.api.interaction
Interface SlashCommandInteraction
-
- All Superinterfaces:
ApplicationCommandInteraction,DiscordEntity,InteractionBase,SlashCommandInteractionOptionsProvider
- All Known Subinterfaces:
AutocompleteInteraction
public interface SlashCommandInteraction extends ApplicationCommandInteraction, SlashCommandInteractionOptionsProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<SlashCommandInteractionOption>getArguments()Gets the arguments of this slash command if there are any.-
Methods inherited from interface org.javacord.api.interaction.ApplicationCommandInteraction
getCommandId, getCommandIdAsString, getCommandName
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.api.interaction.InteractionBase
createFollowupMessageBuilder, createImmediateResponder, getApplicationId, getChannel, getLocale, getServer, getServerLocale, getToken, getType, getUser, getVersion, respondLater, respondLater, respondWithModal, respondWithModal
-
Methods inherited from interface org.javacord.api.interaction.SlashCommandInteractionOptionsProvider
getOptionAttachmentValueByIndex, getOptionAttachmentValueByName, getOptionBooleanValueByIndex, getOptionBooleanValueByName, getOptionByIndex, getOptionByName, getOptionChannelValueByIndex, getOptionChannelValueByName, getOptionDecimalValueByIndex, getOptionDecimalValueByName, getOptionLongValueByIndex, getOptionLongValueByName, getOptionMentionableValueByIndex, getOptionMentionableValueByName, getOptionRoleValueByIndex, getOptionRoleValueByName, getOptions, getOptionStringRepresentationValueByIndex, getOptionStringRepresentationValueByName, getOptionStringValueByIndex, getOptionStringValueByName, getOptionUserValueByIndex, getOptionUserValueByName, requestOptionMentionableValueByIndex, requestOptionMentionableValueByName, requestOptionUserValueByIndex, requestOptionUserValueByName
-
-
-
-
Method Detail
-
getArguments
java.util.List<SlashCommandInteractionOption> getArguments()
Gets the arguments of this slash command if there are any.This is a shorthand method to avoid checking for Subcommmands or SubcommandGroups to get the slash command arguments.
- Returns:
- The argument options.
-
-