Interface SlashCommandInteraction
- All Superinterfaces:
CommandInteraction, CommandInteractionPayload, IDeferrableCallback, IModalCallback, Interaction, IReplyCallback, ISnowflake
- All Known Implementing Classes:
SlashCommandInteractionEvent
Interaction with a slash command
-
Method Summary
Modifier and TypeMethodDescriptionThe respectiveMessageChannelUnionfor this interaction.default GuildMessageChannelUnionTheGuildChannelthis interaction happened in.Methods inherited from interface CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandString, getCommandType, getFullCommandName, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName, isGlobalCommand, isGuildCommandMethods inherited from interface IDeferrableCallback
getHookMethods inherited from interface IModalCallback
replyModalMethods inherited from interface Interaction
getChannelId, getChannelIdLong, getChannelType, getContext, getEntitlements, getGuild, getGuildLocale, getIntegrationOwners, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromAttachedGuild, isFromGuildMethods inherited from interface IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPollMethods inherited from interface ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getChannel
The respectiveMessageChannelUnionfor this interaction.- Specified by:
getChannelin interfaceInteraction- Returns:
- The
MessageChannelUnion
-
getGuildChannel
Description copied from interface:InteractionTheGuildChannelthis interaction happened in.
IfInteraction.getChannelType()is not a guild type, this throwsIllegalStateException!- Specified by:
getGuildChannelin interfaceInteraction- Returns:
- The
GuildChannel
-