# Control who can use a slash command (/server/command-permissions)





A slash command is something members type in Discord, starting with `/`. An overwrite allows or blocks one command for one role or one channel.

How the rules combine:

* A role that is allowed beats a role that is blocked.
* The channel has to allow it too.
* Members with Administrator, and the server owner, are never blocked.
* An allowed role lets its members use the command even without the Discord permission the command normally needs.

<Steps>
  <Step>
    ### Open Command Permissions [#open-command-permissions]

    Open your [dashboard](https://tickety.top/dashboard) and pick your server. In the sidebar, under **Server**, click **Command Permissions**.

        <img alt="Command Permissions in the sidebar and the Add Command button" src="__img0" />
  </Step>

  <Step>
    ### Add the command [#add-the-command]

    Press **Add Command**. If the list is still empty, the button says **Add First Command**. Search for the command and click it. A card for it appears.
  </Step>

  <Step>
    ### Add a role rule [#add-a-role-rule]

    On the card, open **Add role overwrite** and pick a role. A new rule starts as allowed. Switch it off to block the command for that role.

    To keep a command for staff only, add **@everyone** switched off, then your staff role switched on.
  </Step>

  <Step>
    ### Add a channel rule [#add-a-channel-rule]

    Open **Add channel overwrite** and pick a channel. Switch it off to block the command there.
  </Step>

  <Step>
    ### Save [#save]

    Press **Save Changes** in the bar at the bottom of the page. Tickety saves the rules and sends them to Discord, which hides a blocked command from the members it blocks.
  </Step>
</Steps>

If saving says "Saved, but Discord sync failed", press **Sync with Discord** at the top of the page to send the saved rules again. It does not add commands that are missing from Discord.

## It did not work? [#it-did-not-work]

<Accordions>
  <Accordion title="Someone can still use a blocked command">
    They have Administrator or own the server, another of their roles is allowed, or the channel rule is on a different channel. Changes can also take up to 30 seconds to reach the bot.
  </Accordion>

  <Accordion title="You don't have permission to use this command">
    That is what a blocked member sees. Check the command's card if it should be allowed.
  </Accordion>

  <Accordion title="Cannot deny permissions for a role, equal to or above your highest role">
    Discord refused because that role sits at or above Tickety's role. Move Tickety's role above it in **Server Settings**, **Roles**.
  </Accordion>

  <Accordion title="Your session has expired">
    Sending rules to Discord uses your own sign in. Sign in to the dashboard again and press **Sync with Discord**.
  </Accordion>

  <Accordion title="The page says this server uses a custom bot">
    With a custom bot, rules are not sent to Discord, so blocked commands stay visible there. Tickety still refuses them when they are used.
  </Accordion>
</Accordions>
