> For the complete documentation index, see [llms.txt](https://discord-cmds.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discord-cmds.js.org/master.md).

# 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="/pages/-MhChE7b\_-cx2xTdmOWh" %}
[setup](/handler/setup.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MhCicURdzByrOD94EEE" %}
[command](/handler/command.md)
{% endcontent-ref %}

* pages for some specific docs!

{% content-ref url="/pages/-MhEJLkrOxygtKtOFszF" %}
[slash](/commands/slash.md)
{% endcontent-ref %}
