# SlashCommandOptions

Properties

| Parameter                  | Type                                                                                                                                                             | Required | Default                             | Description                                                                              |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------- | ---------------------------------------------------------------------------------------- |
| client                     | [Discord.Client ](https://discord.js.org/#/docs/main/stable/class/Client)\| [ClientLike](/slashdiscord-js/documentation/class-slashcommandhandler/clientlike.md) | true     | none                                | The Discord.Client or an id and token.                                                   |
| registerCommands           | bool                                                                                                                                                             | false    | true                                | If enabled, commands will get patched / deleted / created                                |
| runCommand                 | bool                                                                                                                                                             | false    | true                                | If enabled, command will be run. disable when on the ShardingManager.                    |
| deleteUnregisteredCommands | bool                                                                                                                                                             | false    | true                                | If enabled, commands that no longer exist will get deleted.                              |
| sendPongIfNoResponse       | bool                                                                                                                                                             | false    | true                                | If the ran command hasn't executed any interaction callback, execute a PONG with source. |
| parseInteractionOptions    | bool                                                                                                                                                             | false    | true                                | If enabled, this will automatically parse the options of an interaction.                 |
| debug                      | bool                                                                                                                                                             | false    | true                                | If enabled, the debug messages will be displayed.                                        |
| debugPrefix                | string                                                                                                                                                           | false    | \[SDJS]                             | The prefix of the debug messages.                                                        |
| sendNoLongerAvailable      | bool                                                                                                                                                             | false    | true                                | If enabled, when a command gets executed that isn't recognized it will return a message. |
| noLongerAvailableMessage   | string                                                                                                                                                           | false    | This command is no longer available | The message which should be displayed if sendNoLongerAvailable is true                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jeroenoboy.gitbook.io/slashdiscord-js/documentation/class-slashcommandhandler/slashcommandoptions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
