# 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 %}
