Class GuildlistCommand
java.lang.Object
com.jagrosh.jdautilities.command.Interaction
com.jagrosh.jdautilities.command.Command
com.jagrosh.jdautilities.examples.command.GuildlistCommand
@CommandInfo(name="Guildlist",
description="Gets a paginated list of the guilds the bot is on.",
requirements={"The bot has all necessary permissions.","The user is the bot\'s owner."})
@Error(value="If arguments are provided, but they are not an integer.",
response="[PageNumber] is not a valid integer!")
@RequiredPermissions({MESSAGE_EMBED_LINKS,MESSAGE_ADD_REACTION})
@Author("John Grosh (jagrosh)")
public class GuildlistCommand
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, usesTopicTags
Fields inherited from class com.jagrosh.jdautilities.command.Interaction
botMissingPermMessage, botPermissions, cooldown, cooldownScope, guildOnly, nsfwOnly, ownerCommand, userMissingPermMessage, userPermissions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute
(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, run
Methods inherited from class com.jagrosh.jdautilities.command.Interaction
getBotPermissions, getCooldown, getCooldownScope, getUserPermissions, isOwnerCommand
-
Constructor Details
-
GuildlistCommand
-
-
Method Details
-
execute
Description copied from class:Command
- Specified by:
execute
in classCommand
- Parameters:
event
- TheCommandEvent
that triggered this Command
-