Interface SlashCommandInteraction
- All Superinterfaces:
CommandInteraction
,CommandInteractionPayload
,IDeferrableCallback
,IModalCallback
,Interaction
,IPremiumRequiredReplyCallback
,IReplyCallback
,ISnowflake
- All Known Implementing Classes:
SlashCommandInteractionEvent
Interaction with a slash command
-
Method Summary
Modifier and TypeMethodDescriptionThe respectiveMessageChannelUnion
for this interaction.default GuildMessageChannelUnion
TheGuildChannel
this interaction happened in.Methods inherited from interface net.dv8tion.jda.api.interactions.commands.CommandInteractionPayload
getCommandId, getCommandIdLong, getCommandString, getCommandType, getFullCommandName, getName, getOption, getOption, getOption, getOption, getOptions, getOptionsByName, getOptionsByType, getSubcommandGroup, getSubcommandName, isGlobalCommand, isGuildCommand
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IDeferrableCallback
getHook
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IModalCallback
replyModal
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IPremiumRequiredReplyCallback
replyWithPremiumRequired
Methods inherited from interface net.dv8tion.jda.api.interactions.callbacks.IReplyCallback
deferReply, deferReply, reply, reply, replyComponents, replyComponents, replyEmbeds, replyEmbeds, replyFiles, replyFiles, replyFormat, replyPoll
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getChannel
The respectiveMessageChannelUnion
for this interaction.- Specified by:
getChannel
in interfaceInteraction
- Returns:
- The
MessageChannelUnion
-
getGuildChannel
Description copied from interface:Interaction
TheGuildChannel
this interaction happened in.
IfInteraction.getChannelType()
is not a guild type, this throwsIllegalStateException
!- Specified by:
getGuildChannel
in interfaceInteraction
- Returns:
- The
GuildChannel
-