JDAUser Command
Declares this function as a user 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 GlobalUserEvent for global commands, or, GuildUserEvent for global guild-only and guild commands.
Option types
Input options: Uses @ContextOption, supported types and modifiers are in ParameterResolver, but only the targeted User/Member and InputUser are supported by default, additional types can be added by implementing UserContextParameterResolver.
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