Class ShutdownCommand
java.lang.Object
com.jagrosh.jdautilities.command.Interaction
com.jagrosh.jdautilities.command.Command
com.jagrosh.jdautilities.examples.command.ShutdownCommand
@CommandInfo(name="Shutdown",
description="Safely shuts down the bot.")
@Author("John Grosh (jagrosh)")
public class ShutdownCommand
extends Command
- Author:
- John Grosh (jagrosh)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jagrosh.jdautilities.command.Command
Command.Category -
Field Summary
Fields inherited from class com.jagrosh.jdautilities.command.Command
aliases, arguments, category, children, help, helpBiConsumer, hidden, name, requiredRole, usesTopicTagsFields inherited from class com.jagrosh.jdautilities.command.Interaction
botMissingPermMessage, botPermissions, cooldown, cooldownScope, guildOnly, nsfwOnly, ownerCommand, userMissingPermMessage, userPermissions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(CommandEvent event) The main body method of aCommand.Methods inherited from class com.jagrosh.jdautilities.command.Command
getAliases, getArguments, getCategory, getChildren, getCooldownError, getCooldownKey, getHelp, getName, getRequiredRole, isAllowed, isCommandFor, isGuildOnly, isHidden, runMethods inherited from class com.jagrosh.jdautilities.command.Interaction
getBotPermissions, getCooldown, getCooldownScope, getUserPermissions, isOwnerCommand
-
Constructor Details
-
ShutdownCommand
public ShutdownCommand()
-
-
Method Details
-
execute
Description copied from class:Command- Specified by:
executein classCommand- Parameters:
event- TheCommandEventthat triggered this Command
-