> For the complete documentation index, see [llms.txt](https://v5.realmofdarkness.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5.realmofdarkness.app/how-to/slash-commands.md).

# Slash Commands

## How to use slash commands

To start using Discords slash commands start typing `/` into a channel and you should see a popup with a list of all available commands you can use in this channel, as well as descriptions of what they do. \
\
To use the command you can either scroll through the list and click on the on the command or you can continue typing to filter the list down further making it easier to find the command you want.&#x20;

{% hint style="info" %}
To use commands without a mount, you can press the tab key to select a highlighted command and `Enter` to send the command. You can also use arrow keys to move between commands.
{% endhint %}

<div data-full-width="false"><figure><img src="https://2719917610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6eGN1S7O4pvL507h5lI%2Fuploads%2FWCqA4QJr0tKExE2tuUYS%2FScreenshot%202024-01-29%20123619.png?alt=media&amp;token=9cb44dbc-abdc-487d-8559-150601e70814" alt="" width="563"><figcaption><p>A list of slash commands</p></figcaption></figure></div>

***

## Command Options

Sometimes a command will need to know to be able to carry out the requested action, this is where options come in.\
\
Options come as either `Required` or  `Optional` as the names suggest if it is required you will have to provide the additional info or Discord will not allow you to send the command.

<figure><img src="https://2719917610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6eGN1S7O4pvL507h5lI%2Fuploads%2FEcQ2FNSjWnZ31FjHi6ks%2FScreenshot%202023-12-23%20151909.png?alt=media&amp;token=10011922-47a0-43fa-94cc-55154afc41d6" alt="" width="318"><figcaption><p>A Discord role option with discord providing a list of options</p></figcaption></figure>

Options come in a variety of forms from number options to User/Channel inputs, and Discord will provide helpful feedback on what should go in the option as well as a description set by the bot maker.&#x20;

{% hint style="info" %}
Do not worry if you make a mistake as Discord will highlight the option in red if you input the wrong thing.
{% endhint %}

<figure><img src="https://2719917610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6eGN1S7O4pvL507h5lI%2Fuploads%2FWRHlAeFaT9PTWncWIUuF%2FScreenshot%202023-12-23%20151909.png?alt=media&amp;token=c433575e-fac2-425a-820f-cedebf7d36d8" alt="" width="330"><figcaption><p>Incorrect Input</p></figcaption></figure>

{% hint style="info" %}
A handy tip to get through options quickly is using `tab` to select any option that is highlighted and the arrow keys to move between them.
{% endhint %}

***

## Server Admins

As a server admin you might be saying to yourself "Hang on I don't want all these commands being spammed in my general chat". It is a completely valid thought and thankfully Discord has a way to set which members can use which commands and where.\
\
Navigate to your Server Settings panel, then select the Integrations tab, and finally "Manage" on the bot you wish to edit. Once there you will see a section that looks like this:

<figure><img src="https://2719917610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6eGN1S7O4pvL507h5lI%2Fuploads%2FeIQ1lvj82OWonS7ZfL2Q%2FScreenshot%202023-12-23%20151909.png?alt=media&amp;token=5919a909-c9eb-46bd-8ea3-026e92633926" alt=""><figcaption><p>Discord Command Management</p></figcaption></figure>

This panel will allow you to change the permissions via roles and or channels. You can do this for every command using the top two tabs, or each individual command by clicking on the specified command in the last tab.\
\
As an example, if I only wanted people to use these commands in the `#bot-spam` channel, I could click the <mark style="color:red;">X</mark> on `# All Channels` and then click `Add Channels,` add the `#bot-spam` channel and allow command use in that channel.&#x20;

<figure><img src="https://2719917610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6eGN1S7O4pvL507h5lI%2Fuploads%2Fh5HRleojwdEnwB5tD4qj%2FScreenshot%202023-12-23%20151909.png?alt=media&amp;token=a6b7e647-79e1-434a-8869-0e8bf0bce9c9" alt=""><figcaption><p>Only allow commands in #bot-spam</p></figcaption></figure>

Once you apply your changes the slash commands will only be visible when you try and use them in #bot-spam

{% hint style="warning" %}
Any one with "Admin" Permissions in a server will be able to see and use any command from any channel. So do not worry if you can still see the commands after you apply your changes, they are only visible to you.
{% endhint %}

***

## Additional Info

* [Discord's Slash Command FAQ](https://support.discord.com/hc/en-us/articles/1500000368501-Slash-Commands-FAQ)

{% embed url="<https://www.youtube.com/watch?v=_ollBbQUFOs>" %}
