Class ContextCommand<E extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent>
java.lang.Object
xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
xyz.dynxsty.dih4jda.interactions.commands.application.ApplicationCommand<E,net.dv8tion.jda.api.interactions.commands.build.CommandData>
xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand<E,net.dv8tion.jda.api.interactions.commands.build.CommandData>
xyz.dynxsty.dih4jda.interactions.commands.application.ContextCommand<E>
- Type Parameters:
E
- theGenericCommandInteractionEvent
event.
- All Implemented Interfaces:
ExecutableCommand<E>
- Direct Known Subclasses:
ContextCommand.Message
,ContextCommand.User
public abstract class ContextCommand<E extends net.dv8tion.jda.api.events.interaction.command.GenericCommandInteractionEvent>
extends BaseApplicationCommand<E,net.dv8tion.jda.api.interactions.commands.build.CommandData>
Model class which represents a single Context Command.
- Since:
- v1.5
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Creates a new message-context command.static class
Creates a new user-context command.Nested classes/interfaces inherited from class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
RestrictedCommand.Cooldown
-
Method Summary
Methods inherited from class xyz.dynxsty.dih4jda.interactions.commands.application.BaseApplicationCommand
getQueueableGuilds, getRegistrationType, setQueueableGuilds, setRegistrationType
Methods inherited from class xyz.dynxsty.dih4jda.interactions.commands.application.ApplicationCommand
getCommandData, setCommandData
Methods inherited from class xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand
applyCooldown, getCommandCooldown, getRequiredGuilds, getRequiredPermissions, getRequiredRoles, getRequiredUsers, hasCooldown, retrieveCooldown, setCommandCooldown, setRequiredGuilds, setRequiredPermissions, setRequiredRoles, setRequiredUsers
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.dynxsty.dih4jda.interactions.commands.ExecutableCommand
execute