Interface ApplicationCommandInteraction

    • Method Detail

      • getCommandId

        long getCommandId()
        Gets the id of the invoked application command.
        Returns:
        The id of the invoked command.
      • getCommandIdAsString

        java.lang.String getCommandIdAsString()
        Gets the id of the invoked application command as string.
        Returns:
        The id of the invoked command as string.
      • getCommandName

        java.lang.String getCommandName()
        Gets the name of the invoked application command.
        Returns:
        The name of the invoked command.
      • getRegisteredCommandServerId

        java.util.Optional<java.lang.Long> getRegisteredCommandServerId()
        Gets the id of the server the command was registered on.
        Returns:
        The id of the server the command was registered on.
      • getRegisteredCommandServer

        default java.util.Optional<Server> getRegisteredCommandServer()
        Gets the server the command was registered on.
        Returns:
        The server the command was registered on.