Package org.javacord.api.interaction
Interface SlashCommandInteraction
-
- All Superinterfaces:
DiscordEntity,InteractionBase,SlashCommandInteractionOptionsProvider
public interface SlashCommandInteraction extends InteractionBase, SlashCommandInteractionOptionsProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCommandId()Gets the id of the invoked slash command.StringgetCommandIdAsString()Gets the id of the invoked slash command as string.StringgetCommandName()Gets the name of the invoked slash command.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.api.interaction.InteractionBase
createFollowupMessageBuilder, createImmediateResponder, getApplicationId, getChannel, getServer, getToken, getType, getUser, getVersion, respondLater
-
Methods inherited from interface org.javacord.api.interaction.SlashCommandInteractionOptionsProvider
getFirstOption, getFirstOptionBooleanValue, getFirstOptionChannelValue, getFirstOptionIntValue, getFirstOptionMentionableValue, getFirstOptionRoleValue, getFirstOptionStringValue, getFirstOptionUserValue, getOptionBooleanValueByIndex, getOptionBooleanValueByName, getOptionByIndex, getOptionByName, getOptionChannelValueByIndex, getOptionChannelValueByName, getOptionIntValueByIndex, getOptionIntValueByName, getOptionMentionableValueByIndex, getOptionMentionableValueByName, getOptionRoleValueByIndex, getOptionRoleValueByName, getOptions, getOptionStringValueByIndex, getOptionStringValueByName, getOptionUserValueByIndex, getOptionUserValueByName, getSecondOption, getSecondOptionBooleanValue, getSecondOptionChannelValue, getSecondOptionIntValue, getSecondOptionMentionableValue, getSecondOptionRoleValue, getSecondOptionStringValue, getSecondOptionUserValue, getThirdOption, getThirdOptionBooleanValue, getThirdOptionChannelValue, getThirdOptionIntValue, getThirdOptionMentionableValue, getThirdOptionRoleValue, getThirdOptionStringValue, getThirdOptionUserValue, requestFirstOptionMentionableValue, requestFirstOptionUserValue, requestOptionMentionableValueByIndex, requestOptionMentionableValueByName, requestOptionUserValueByIndex, requestOptionUserValueByName, requestSecondOptionMentionableValue, requestSecondOptionUserValue, requestThirdOptionMentionableValue, requestThirdOptionUserValue
-
-
-
-
Method Detail
-
getCommandId
long getCommandId()
Gets the id of the invoked slash command.- Returns:
- The id of the invoked command.
-
getCommandIdAsString
String getCommandIdAsString()
Gets the id of the invoked slash command as string.- Returns:
- The id of the invoked command as string.
-
getCommandName
String getCommandName()
Gets the name of the invoked slash command.- Returns:
- The name of the invoked command.
-
-