Class InteractionCommandImpl
java.lang.Object
net.essentialsx.discord.interactions.InteractionCommandImpl
- All Implemented Interfaces:
InteractionCommand
- Direct Known Subclasses:
ExecuteCommand
,ListCommand
,MessageCommand
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInteractionCommandImpl
(JDADiscordService jda, String name, String description) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(InteractionCommandArgument argument) Gets the list of arguments registered to this command.Gets the brief description of the command as it appears in Discord.getName()
Gets the name of this command as it appears in Discord.final boolean
Whether or not the command has been disabled and should not be registered at the request of the user.final boolean
Whether or not the command is ephemeral and if its usage/replies should be private for the user on in Discord client.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.essentialsx.api.v2.services.discord.InteractionCommand
onCommand
-
Field Details
-
jda
-
-
Constructor Details
-
InteractionCommandImpl
-
-
Method Details
-
isDisabled
public final boolean isDisabled()Description copied from interface:InteractionCommand
Whether or not the command has been disabled and should not be registered at the request of the user.- Specified by:
isDisabled
in interfaceInteractionCommand
- Returns:
- true if the command has been disabled.
-
isEphemeral
public final boolean isEphemeral()Description copied from interface:InteractionCommand
Whether or not the command is ephemeral and if its usage/replies should be private for the user on in Discord client.- Specified by:
isEphemeral
in interfaceInteractionCommand
- Returns:
- true if the command is ephemeral.
-
getName
Description copied from interface:InteractionCommand
Gets the name of this command as it appears in Discord.- Specified by:
getName
in interfaceInteractionCommand
- Returns:
- the name of the command.
-
getDescription
Description copied from interface:InteractionCommand
Gets the brief description of the command as it appears in Discord.- Specified by:
getDescription
in interfaceInteractionCommand
- Returns:
- the description of the command.
-
getArguments
Description copied from interface:InteractionCommand
Gets the list of arguments registered to this command.Note: Arguments can only be registered before the command itself is registered, others will be ignored.
- Specified by:
getArguments
in interfaceInteractionCommand
- Returns:
- the list of arguments.
-
getAdminSnowflakes
-
addArgument
-