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.
First parameter must be GlobalMessageEvent for global commands, or, GuildMessageEvent for global guild-only and guild commands.
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