> For the complete documentation index, see [llms.txt](https://ephf.gitbook.io/discord-short/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ephf.gitbook.io/discord-short/creating-bot-commands/default-sender-errors.md).

# Default Sender Errors

You can set default `failedPermissions` and `failedArguments` functions like this:

```javascript
ds.defaultFailedPermissions(({send}) => {
    send('You don\'t have the permissions to do that!');
});

ds.defaultFailedArguments(({send}) => {
    send('Incorrect arguments!');
});

ds.defaultFailedCooldown(({send, timeleft}) => {
    send(`You need to wait ${timeleft}s!`);
});
```
