# Server commands

#### :crown: **Admin only commands**

#### :bulb: **General command for everyone**

<mark style="color:red;">**Required**</mark> parameters will be in \[Square brackets]

<mark style="color:green;">**Optional**</mark> parameters will be in (Curly brackets)

***

## :crown: Server logs

```
/server logs [channel]
```

Designate a channel for all <mark style="color:red;">InHouseQueue</mark> logs. Important events will be logged here to give server owners and moderators a clear overview of activities on the server. For security reasons, we recommend making this channel private and accessible only to trusted members.

An admin log channel is automatically created during [`/setup`](https://docs.inhousequeue.xyz/docs/quick-start).

Please note that not every action is logged — we’ve carefully selected actions we think are most useful. If you feel something important is missing, let us know in the support channel!

Here is the full list of actions/commands that will appear in your Log channel:

* When a queue is started
* When the server's language is changed
* When an admin forces a winner for a match
* When an admin changes the winner for a match
* When an admin voids/cancels a match
* When an admin resets all Wins, Losses, and MVPs on the leaderboard
* When an admin resets a queue and removes all members from it
* When an admin resets a member's Wins, Losses, and MVPs
* When an admin resets the MMR for everyone
* When an admin resets the MMR for a specific member
* When an admin adds a Win for a member
* When an admin removes a Win for a member
* When an admin removes a Loss for a member
* When an admin removes a user from all queues
* When an admin adds MMR to a player
* When an admin removes MMR from a player
* When an admin updates a player's IGN
* When an admin force starts a game
* When an admin subs out a player for another player in a game
* When a player sets or updates their IGN
* When a game is abandoned by starting an abandon vote
* When a game has ended and a team wins
* When a member starts spectating a game
* When players are in a duo for a game
* When a captain select game mode starts
* When a match starts
* When a queue times out because not all players are ready. Includes a list of users who did not ready
* When a user readies up for a game
* When a user gets a decay message warning
* When a user's MMR is decayed due to inactivity
* When a user clicks 'Not Ready' during ready up phase
* When an admin adds loss reduction to a match

{% hint style="info" %}
When selecting an existing channel, make sure <mark style="color:red;">InHouseQueue</mark> has access to it!
{% endhint %}

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Feq0f1muaMtBr4QnNigva%2Fadmin_log.png?alt=media&#x26;token=60ab9f2e-dd03-4e96-9c7c-f9b418b5a6b1" alt="" width="404"><figcaption></figcaption></figure></div>

***

## :crown: View server Statistics

```
/server stats [channel]
```

Use this command to view some basic server statistics.

This includes:

* Total matches played
* The date of your first game
* The date of your last game
* Total number of unique players
* [Queue roles](https://docs.inhousequeue.xyz/docs/queue-commands#crown-set-a-discord-role-for-inhouses) available on your server

We’re working on adding more in-depth and fun statistics to this section in the future!

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-2ff7f9bf101e13a46c65f778ae042281429de7d4%2Fserver_stats_1.png?alt=media" alt="" width="404"><figcaption><p>First page</p></figcaption></figure></div>

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-d60dd79d389dc75c3b6a81957829f3680a113685%2Fserver_stats_2.png?alt=media" alt="" width="404"><figcaption></figcaption></figure></div>

***

## :crown: **Turn features on and off**

```
/defaults [feature] [condition]
```

Enable or disable various features of the <mark style="color:red;">InHouseQueue</mark> system. These are all default settings of <mark style="color:red;">InHouseQueue</mark>. If you do not want some of these features enabled, you can turn them off using this command.

Available <mark style="color:green;">features</mark>:

1. **mvp\_voting**
   1. Toggle the Direct message sent by <mark style="color:red;">InHouseQueue</mark> at the end of a game
2. **opgg**
   1. Toggle the creation of Multi team op.gg links [(League of legends only)](https://docs.inhousequeue.xyz/docs/preset-games#league-of-legends)
3. **lol\_Draft**
   1. Toggle the creation of a LOL Draft link [(League of legends only)](https://docs.inhousequeue.xyz/docs/preset-games#league-of-legends)
4. **create\_vc**
   1. Toggle the automatic creation of voice channels
5. **show\_lobby**
   1. Toggle Hiding the Lobby from the rest of the server or keeping it visible for the whole server.
6. **queue\_role**
   1. Toggle the requirement for a [queue role](https://docs.inhousequeue.xyz/docs/queue-commands#crown-set-a-discord-role-for-inhouses)
7. **match\_info**
   1. Toggle the embed that contains Match details and Win probability.
8. **mute\_spectators**
   1. Toggle Spectators being able to speak when they join the Team voice lobbies
9. **send\_ready\_up\_dm**
   1. Specify if <mark style="color:red;">InHouseQueue</mark> will DM players when a game is found
10. clean\_up\_queue
    1. Specify if to delete Queues when a game has ended automatically
11. set\_nickname\_to\_ign
    1. When a user runs `/ign` their Discord nickname is automatically updated to the IGN they've set.
12. allow\_spectators
    1. Toggle whether spectators are allowed. Spectators are muted members who can join Blue or Red team voice channel. A player of the game can [share their screen](https://support.discord.com/hc/en-us/articles/360040816151-Go-Live-and-Screen-Share) to allow them to watch along.
13. not\_ready\_button
    1. Toggle whether the `Not Ready!` button appears during ready up phase. This allows user to leave the queue early.

***

## :crown: **Check InHouseQueues permissions**

```
/check_permissions
```

Review <mark style="color:red;">InHouseQueue</mark>'s permissions within the server.

Use this to check what permissions <mark style="color:red;">InHouseQueue</mark> is missing.

### Global Permissions:

* These are permissions <mark style="color:red;">InHouseQueue</mark> has across your server. By default, when you use the correct invite link, <mark style="color:red;">InHouseQueue</mark> will join with all its default global permissions. However, in some cases, due to certain Discord server setups, this can be overwritten by complex permissions. Use this command to check if there's anything wrong.

### Channel / Category Permissions:

* These are permissions <mark style="color:red;">InHouseQueue</mark> requires within each text channel or category channel it [manages](https://docs.inhousequeue.xyz/docs/quick-start#channels-and-categories-explained). <mark style="color:red;">InHouseQueue</mark> needs "Manage Channel" and "Send Messages" permissions for all text and category channels.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-fb15c23636ec0b68e36f5fa296da625bbb463d8c%2Fbot_permissions_1.png?alt=media" alt=""><figcaption><p>Missing permissions for some text channels</p></figcaption></figure></div>

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-fc857ac1c4dc0bedbba8f049583649ea8af993d6%2Fbot_permissions_2.png?alt=media" alt=""><figcaption><p>Everything working!</p></figcaption></figure></div>

This command should help you pinpoint any permission problems you're having

{% hint style="info" %}
If you're still having problems, please see our bot permissions [guide](https://docs.inhousequeue.xyz/docs/quick-start/trouble-shooting-ihq).
{% endhint %}

***

## :crown: Grant Admin commands to Moderators / Helpers

```
/permissions grant

/permissions revoke
```

Permit your moderators or helpers to run Admin commands. This gives you fine-grained control and delegates permissions perfectly.

**Grant:** This will give a Discord role permissions to run a command.

**Revoke:** This will remove the permissions.

You can give every Admin related command to any amount of Discord roles.

### How it works

For this example we will assume I am an Admin of an InHouse Server and I want to grant my Moderators permissions for all [Queue commands](https://docs.inhousequeue.xyz/docs/commands/queue-commands), and some [Game commands](https://docs.inhousequeue.xyz/docs/commands/game-commands).

### Granting permissions to ALL commands in a Category

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-058ebdab2e68f46c49b67fc8e4e93bb49146267c%2Fgrant_1.png?alt=media" alt=""><figcaption></figcaption></figure></div>

1. Run the `/permissions grant` command. This opens up the <mark style="color:green;">**Grant Menu**</mark>.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-9b36ed0b792a15e6d1cc789c1797e097d2b67dca%2Fgrant_2.png?alt=media" alt=""><figcaption></figcaption></figure></div>

2. All commands for <mark style="color:red;">InHouseQueue</mark> are categorised. Please select a command category you would like to navigate. If you're unsure which command is in what category, you can find them all here: <https://docs.inhousequeue.xyz/docs/commands>.
3. Since we want Moderators to be able to run <mark style="color:green;">**ALL**</mark> [Queue commands](https://docs.inhousequeue.xyz/docs/commands/queue-commands), we will select <mark style="color:green;">**Queue**</mark>.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-f74cc0d422c89fb9052e61db57c0f4e5ab91a51d%2Fgrant_3.png?alt=media" alt=""><figcaption></figcaption></figure></div>

4. Once selected, this menu will show every single individual command within the selected category. Here, you can select <mark style="color:green;">**up to 5**</mark> individual commands at once. But for this example, we want them all. (If you need to select more than 5 commands, simply repeat this process after completing it once.)

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-101870a36e6dd4591502c0b8977ef4194b013df8%2Fgrant_5.png?alt=media" alt=""><figcaption></figcaption></figure></div>

5. Once you've selected the commands, you must click <mark style="color:green;">**outside**</mark> of the embed menu to confirm your selection.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-08ffc55a9e42d40f64e73f52ea19c2953a4e33e8%2Fgrant_6.png?alt=media" alt=""><figcaption></figcaption></figure></div>

6. On the next menu, you will be able to select <mark style="color:green;">up to 5</mark> Discord roles to grant permissions for these admin commands. (If you need to assign permissions to more than 5 roles, simply repeat this process after completing it once.)

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-b2835175a9661547f26ae98ed77899ad32ca6204%2Fgrant_7.png?alt=media" alt=""><figcaption></figcaption></figure></div>

7. You will get a list of commands enabled for the selected Discord roles.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-ccb4c4d3b6de0552ffffa1f168a9e1ca13f6d846%2Fgrant_8.png?alt=media" alt=""><figcaption></figcaption></figure></div>

8. To confirm everything has worked, run `/permissions grant` once more and select the same command category. You'll now see that the Moderator Discord role is allowed to use every command within the <mark style="color:green;">**Queue**</mark> command category.

### Granting Permissions to some Commands in a Category

The process is exactly the same as granting permissions to all commands, but instead of selecting **ALL**, you will pick specific commands.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-d043ab88af9c8e3cfb82cfddb5a570337ae1439a%2Fgrant_9.png?alt=media" alt=""><figcaption></figcaption></figure></div>

1. As mentioned earlier, we only want our moderators to have permissions to <mark style="color:green;">**some**</mark> [Game commands](https://docs.inhousequeue.xyz/docs/commands/game-commands). Select the Game command category.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-f01b4079e57a86d19ef9007702509522715a3113%2Fgrant_10.png?alt=media" alt=""><figcaption></figcaption></figure></div>

2. Here is a list of all the commands within the Games category.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-6cb2011d55a01f0f0ebfea73c6dfbe47f05e2afc%2Fgrant_11.png?alt=media" alt=""><figcaption></figcaption></figure></div>

3. Select the commands you want to allow. You can select <mark style="color:green;">**up to 5 commands at once**</mark>. Click outside the menu to confirm your selection.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-4bdfe866e013a688d29e6b8f64ff3dacff747943%2Fgrant_12.png?alt=media" alt=""><figcaption></figcaption></figure></div>

4. Before proceeding, you'll see a list of your selected commands. If you're happy, proceed with selecting the Discord roles you want to grant access to these commands. Otherwise, you can go back with the `Previous` button.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-8d0969c0815eb934da6e1e783446804549161c94%2Fgrant_13.png?alt=media" alt=""><figcaption></figcaption></figure></div>

5. Select the Discord roles you want to assign. You can select <mark style="color:green;">**up to 5 Discord roles**</mark>.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-18471563f80355547d088c37baf60bb70d2354fb%2Fgrant_14.png?alt=media" alt=""><figcaption></figcaption></figure></div>

6. Your selection has now been confirmed.

<div align="left"><figure><img src="https://1130318129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwcHfLjgS9hMDSoOpDEDo%2Fuploads%2Fgit-blob-c7ceeffcecbf29d1b1b9232101656bee2566d31f%2Fgrant_15.png?alt=media" alt=""><figcaption></figcaption></figure></div>

7. The menu will now update to show your selections. You can use this menu later as a reference or reminder of the current permissions.

## Revoke

The revoke process is identical to granting. Instead, you will just be removing the access from selected Discord roles.

1. Run the `permissions revoke` to begin the process.

***

## :crown: Unsubscribe from notifications

```
/unsubscribe [feature]
```

<mark style="color:red;">InHouseQueue</mark> will sometimes send notifications to your queue channels. These can be reminders, useful tips or Patch notes notifications. You may opt out of receiving notifications at any point. Please note, that this is a one-time decision, you cannot resubscribe.

***

## :crown: Change the language

```
/language [language]
```

Change the language <mark style="color:red;">InHouseQueue</mark> uses.

**Available Languages:**

* English
* Spanish
* Portuguese
* Italian
