# Command Permissions

Sx Bot is using Discord's v2 command permission system, effective **February 28, 2023.** For more information on this, visit [Discord's command permissions](https://support.discord.com/hc/en-us/articles/4644915651095-Command-Permissions) page.

To setup command permissions, head over to **Server Settings -> Integrations -> Bots and Apps -> Sx Bot.** From here you can search for individual commands, and allow or restrict usage based on roles, members, or channels.

<figure><img src="/files/CWS5NOKWA1tUpKTjxpXj" alt=""><figcaption><p>Integrations -> Bots and Apps > Sx Bot</p></figcaption></figure>

<figure><img src="/files/VXTDPARzv3n92M3LhOiV" alt=""><figcaption><p>Allow or Restrict access to commands by roles, members, or channels.</p></figcaption></figure>


---

# 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.sxbot.io/the-basics/command-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.
