# Missing Permissions

Sometimes Dazai will error out during a command with the error message

```
DiscordRESTError [50013]: Missing Permissions
```

This means that you did not give Dazai the required permissions to execute the task. This can be fixed by giving Dazai the required permissions.

### Fixes for specific commands

#### Purge

Purge requires the Manage Message permission from Discord. To grant it permission, right click on the channel, go to Edit Channel then Permissions then click on advanced permissions. Next, click on the + button and type in Dazai and click on the bot that pops up.

![](/files/-MVsTha_MpK2D2M1W46M)

Afterwards, make sure to scroll down and check the Manage Messages permission & press save!

![](/files/-MVsUJ-TE1LLSHMDuWAh)


---

# 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://docs.dazai.app/troubleshooting/missing-permissions.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.
