# README

### Welcome to discord-cmds.js

## Welcome

* in this docs you will get all information about the npm package and how to use it!

#### Example

```javascript
module.exports = {
    name: 'say',
    description: 'Shows latency ping!',
    options: [{
        name: 'input',
        type: 'STRING',
        description: 'The input to echo back',
        required: true,
    }],
    run: async({ interaction, type, client, args, reply, editReply }) => {
        if(type === "MESSAGE") {
        await interaction.channel.send({ content: "Hi" })
        } else {
        await interaction.reply({ content: "Hi" }) 
        }
    }
}
```

Check out the pages below!

* pages for handler information!

{% content-ref url="handler/setup" %}
[setup](https://discord-cmds.js.org/handler/setup)
{% endcontent-ref %}

{% content-ref url="handler/command" %}
[command](https://discord-cmds.js.org/handler/command)
{% endcontent-ref %}

* pages for some specific docs!

{% content-ref url="commands/slash" %}
[slash](https://discord-cmds.js.org/commands/slash)
{% endcontent-ref %}


---

# 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://discord-cmds.js.org/master.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.
