Class InteractionCommandImpl

java.lang.Object
net.essentialsx.discord.interactions.InteractionCommandImpl
All Implemented Interfaces:
InteractionCommand
Direct Known Subclasses:
ExecuteCommand, ListCommand, MessageCommand

public abstract class InteractionCommandImpl extends Object implements InteractionCommand
  • Field Details

  • Constructor Details

  • 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 interface InteractionCommand
      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 interface InteractionCommand
      Returns:
      true if the command is ephemeral.
    • getName

      public String getName()
      Description copied from interface: InteractionCommand
      Gets the name of this command as it appears in Discord.
      Specified by:
      getName in interface InteractionCommand
      Returns:
      the name of the command.
    • getDescription

      public String getDescription()
      Description copied from interface: InteractionCommand
      Gets the brief description of the command as it appears in Discord.
      Specified by:
      getDescription in interface InteractionCommand
      Returns:
      the description of the command.
    • getArguments

      public List<InteractionCommandArgument> 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 interface InteractionCommand
      Returns:
      the list of arguments.
    • getAdminSnowflakes

      public List<String> getAdminSnowflakes()
    • addArgument

      public void addArgument(InteractionCommandArgument argument)