public interface ICommand
| Modifier and Type | Method | Description |
|---|---|---|
default String |
info() |
In case you are using the automated help command of this API, your command classes should override this method.
|
void |
onCommand(CommandEvent event,
net.dv8tion.jda.core.entities.Member member,
net.dv8tion.jda.core.entities.TextChannel channel,
String[] args) |
Everything that happens if the command is executed should be written here.
|
void onCommand(CommandEvent event, net.dv8tion.jda.core.entities.Member member, net.dv8tion.jda.core.entities.TextChannel channel, String[] args)
event - By this, you are given access to the CommandEvent, in case you want to get its belongings or even modify it.member - The member who called the command.channel - The TextChannel in which the command has been called.args - The command arguments, i.e. everything behind the label ([prefix][label] [arg1] [arg2]...)default String info()
Copyright © 2018. All rights reserved.