Interface SlashCommandContext
- All Superinterfaces:
CommandContext
,InteractionCommandContext
- All Known Implementing Classes:
AnyCommandContext
The execution context of an command invoked through a slash command.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionSame asInteractionCommandContext.getEvent()
.Same asgetInteractionEvent()
.Methods inherited from interface dev.sympho.modular_commands.api.command.context.CommandContext
getArgument, getCaller, getCallerMember, getChannel, getChannelId, getContext, getGuild, getGuildId, getInvocation, setContext, setContext
Methods inherited from interface dev.sympho.modular_commands.api.command.context.InteractionCommandContext
getEvent
-
Method Details
-
getSlashEvent
Same asgetInteractionEvent()
. This method only exists becauseAnyCommandContext
needs to exist.- Returns:
- The trigger event.
-
getInteractionEvent
Description copied from interface:InteractionCommandContext
Same asInteractionCommandContext.getEvent()
. This method only exists becauseAnyCommandContext
needs to exist.- Specified by:
getInteractionEvent
in interfaceInteractionCommandContext
- Returns:
- The trigger event.
-