@CommandInfo(name={"Ping","Pong"}, description="Checks the bot\'s latency") @Author(value="John Grosh (jagrosh)") public class PingCommand extends Command
Command.Category, Command.CooldownScope
aliases, arguments, botPermissions, category, children, cooldown, cooldownScope, guildOnly, help, helpBiConsumer, hidden, name, ownerCommand, requiredRole, userPermissions, usesTopicTags
Constructor and Description |
---|
PingCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(CommandEvent event)
The main body method of a
Command . |
getAliases, getArguments, getBotPermissions, getCategory, getChildren, getCooldown, getCooldownError, getCooldownKey, getHelp, getName, getRequiredRole, getUserPermissions, isAllowed, isCommandFor, isGuildOnly, isHidden, isOwnerCommand, run
protected void execute(CommandEvent event)
Command
execute
in class Command
event
- The CommandEvent
that
triggered this Command