-
Notifications
You must be signed in to change notification settings - Fork 0
Command Arguments
pumbas600 edited this page Aug 14, 2021
·
19 revisions
Written for HalpBot-Core-1.0.1
In HalpBot, method parameters are automatically assumed to be command arguments except in the following 3 situations:
-
The parameter type extends
GenericEvent(E.g:MessageReceivedEvent). Instead, it'll pass theMessageReceivedEventthat JDA received when the command was called. -
The parameter type extends
AbstractCommandAdapter(E.g:TokenCommandAdapter). Instead, it'll pass theTokenCommandAdapterthat the command is registered to. -
The parameter is annotated with
@Source. This tells HalpBot that the parameter is meant to be extracted from theMessageReceivedEvent(Just so that you don't have to).
- Built-in Commands
- @Command Parameters
- Arguments
- Annotations
- Custom Objects
- Custom TypeParsers
- Slash Commands - W.I.P.
- Pagination - W.I.P