JDAMessage Command
Declares this function as a message context command.
See the Discord docs for more details.
Requirements
The declaring class must be annotated with @Command and extend ApplicationCommand.
The first parameter must be:
GuildMessageEvent if the interaction context only contains InteractionContextType.GUILD.
GlobalMessageEvent in other cases.
Option types
Input options: Uses @ContextOption, supported types and modifiers are in ParameterResolver, but only the targeted Message is supported by default, additional types can be added by implementing MessageContextParameterResolver.
Custom options: No annotation, additional types can be added by implementing ICustomResolver.
Service options: No annotation, however, I recommend injecting the service in the class instead.
See also
@Command
@ContextOption
@UserPermissions
@BotPermissions
@Cooldown
@RateLimit
@Filter
Declaring global application commands using the DSL
Declaring guild application commands using the DSL
DSL equivalent
Properties
Represents where a command can be used.
Specifies whether the application command is disabled for everyone but administrators by default, so that administrators can further configure the command.
The integration types in which this command can be installed in.
Specifies the application command scope for this command, where the command will be pushed to.