Class ContextCommand.User
java.lang.Object
xyz.dynxsty.dih4jda.interactions.commands.CommandRequirements
xyz.dynxsty.dih4jda.interactions.commands.BaseCommandRequirements
xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
xyz.dynxsty.dih4jda.interactions.commands.ContextCommand.User
- Enclosing class:
ContextCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
ContextCommand.Message, ContextCommand.User -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(net.dv8tion.jda.api.events.interaction.command.UserContextInteractionEvent event) Abstract method that must be implemented for all User Context Commands.Methods inherited from class xyz.dynxsty.dih4jda.interactions.commands.ContextCommand
getCommandData, setCommandDataMethods 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
-
Constructor Details
-
User
public User()
-
-
Method Details
-
execute
public abstract void execute(net.dv8tion.jda.api.events.interaction.command.UserContextInteractionEvent event) Abstract method that must be implemented for all User Context Commands.public class PingContextMenu extends ContextCommand.User { public PingContextMenu() { this.setCommandData(Commands.user("Ping")); } @Override public void execute(UserContextInteractionEvent event) { event.reply("Pong!").queue(); } }
-