> 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/handler/setup.md).

# setup

## setuping discord-cmds.js

* first install our package using `npm i discord-cmds.js@latest`&#x20;
* then after defining discord client!
* add this codes to your project!

### code to add!

```javascript
const discmd = require("discord-cmds.js")

const handler = new discmd(client,{
cmdDir: "./commands",
port: 3000, //for starting express app!
slash: true, //your commands can be runned as slash commands!
normal: true, //your commands can be runned as normal commands!
prefix: "!",
notOwnerMsg: "You are not my owner",
ownerID: "" //bot owner id!
notHavingPermsMsg: "You don't have {PERMISSION} perms!",
clientNotHavingPermsMsg: "I have have {PERMISSION} perms!"
})
```

Now head over to
