Interface InteractionCommandContext
- All Superinterfaces:
dev.sympho.bot_utils.access.AccessContext,dev.sympho.bot_utils.access.AccessValidator,dev.sympho.bot_utils.access.ChannelAccessContext,dev.sympho.bot_utils.access.ChannelAccessValidator,dev.sympho.bot_utils.event.ChannelEventContext,CommandContext,dev.sympho.bot_utils.event.EventContext,dev.sympho.bot_utils.event.InteractionEventContext,dev.sympho.bot_utils.event.RepliableContext
- All Known Subinterfaces:
SlashCommandContext
public interface InteractionCommandContext
extends CommandContext, dev.sympho.bot_utils.event.InteractionEventContext
The execution context of an command invoked through an interaction (application command).
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the user that called the command as a guild member as provided by the triggering event, if present.default Mono<MessageChannel>channel()member()Methods inherited from interface dev.sympho.bot_utils.access.AccessContext
asGuild, isPrivateMethods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext
asUserMethods inherited from interface dev.sympho.bot_utils.event.ChannelEventContext
belongs, belongs, belongs, belongs, hasAccess, hasAccess, validate, validatorMethods inherited from interface dev.sympho.modular_commands.api.command.context.CommandContext
caller, callerMember, commandInvocation, getArgument, getArgument, getArgument, getContext, invocation, requireArgument, requireArgument, requireArgument, requireContext, setContext, setContextMethods inherited from interface dev.sympho.bot_utils.event.EventContext
client, validateMethods inherited from interface dev.sympho.bot_utils.event.InteractionEventContext
channelId, event, guild, guildId, interaction, userMethods inherited from interface dev.sympho.bot_utils.event.RepliableContext
replies, reply, reply, reply, reply, reply, reply, reply
-
Method Details
-
channel
- Specified by:
channelin interfacedev.sympho.bot_utils.access.ChannelAccessContext- Specified by:
channelin interfaceCommandContext- Specified by:
channelin interfacedev.sympho.bot_utils.event.InteractionEventContext
-
member
- Specified by:
memberin interfacedev.sympho.bot_utils.access.AccessContext- Specified by:
memberin interfaceCommandContext- Specified by:
memberin interfacedev.sympho.bot_utils.event.InteractionEventContext- See Also:
-
member
- Specified by:
memberin interfacedev.sympho.bot_utils.access.AccessContext- Specified by:
memberin interfaceCommandContext- Specified by:
memberin interfacedev.sympho.bot_utils.event.InteractionEventContext- See Also:
-
callerMember
Description copied from interface:CommandContextRetrieves the user that called the command as a guild member as provided by the triggering event, if present.- Specified by:
callerMemberin interfaceCommandContext- Returns:
- The calling user as a guild member, or
nullif the command was invoked in a private channel.
-