Class ContextCommand
java.lang.Object
xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
- Direct Known Subclasses:
ContextCommand.Message,ContextCommand.User
Model class which represents a single Context Command.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionfinal net.dv8tion.jda.api.interactions.commands.build.CommandDatafinal voidsetCommandData(net.dv8tion.jda.api.interactions.commands.build.CommandData commandData) Sets this commands'CommandData.Methods inherited from class xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
blacklistGuilds, getGuilds, getRegistrationType, setRegistrationType, whitelistGuildsMethods inherited from class xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
getRequiredPermissions, getRequiredRoles, getRequiredUsers, requirePermissions, requireRoles, requireUsers
-
Method Details
-
getCommandData
public final net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData() -
setCommandData
public final void setCommandData(@Nonnull net.dv8tion.jda.api.interactions.commands.build.CommandData commandData) Sets this commands'CommandData.- Parameters:
commandData- The correspondingCommandDatawhich should be used for this context command.- See Also:
-
Commands.user(String)Commands.message(String)
-