> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/server-tools/prefix-commands.md).

# Prefix Commands

InfinityBot has some prefix commands that you can use to manage your server

{% hint style="info" %}
Want to know how prefix commands work? Check out [the command guide](/infinitybot-docs/guides/infinitybot-guides/command-guides.md)!
{% endhint %}

{% hint style="info" %}
Did you [change the prefix of the bot](#change-the-prefix-of-the-bot)? Make sure to use that prefix, otherwise the bot will not respond!
{% endhint %}

## Manage Prefix Commands

With the commands below you can manage all other prefix commands

### View All Prefix Commands

You can view a list with all prefix commands with the `!prefix` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F4fxjHUBn8lSWILIxMllF%2Fimage.png?alt=media&amp;token=981a654f-4c89-47a6-bb45-304fe2a86aae" alt="" width="563"><figcaption></figcaption></figure>

### Change the Prefix of the Bot

You can change the prefix of the bot with the `!set-prefix` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FW4R6w5FIRvsboGVWzaTJ%2Fimage.png?alt=media&amp;token=aa3b4b12-c236-4cd4-8714-38c45fa84a59" alt="" width="472"><figcaption></figcaption></figure>

After you pressed "Yes", you will get a form, simply enter the prefix you would like to use, for example: `!`, `?`, `.`, `#`, `$` or any other character.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F9TL19YHYG9maZtbi43no%2Fimage.png?alt=media&amp;token=648c5f33-b4d9-4a13-9c32-5e3f9c25b332" alt="" width="396"><figcaption></figcaption></figure>

### Set a Command Channel

You can select a command channel with the `!cmnd-channel` command.&#x20;

{% hint style="info" %}
The channel marked as command channel will be the only channel where users can use prefix commands in your server.&#x20;

Note that users with the `moderate users`, `manage channel` / `server` or `administrator` permission can always use commands everywhere in the server.&#x20;
{% endhint %}

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F6nNVOrvTqBh644SRmb2G%2Fimage.png?alt=media&amp;token=b3f72dd5-fb42-4e64-aa4d-8e477b3c5c87" alt="" width="557"><figcaption></figcaption></figure>

Below you can find what the buttons below this panel do:

<details>

<summary>The "Yes" button</summary>

With this button you can select a channel that you want to mark as command channel.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2Fdi6hfDbPrxFWvRl2qMMJ%2Fimage.png?alt=media&amp;token=bfd18233-afac-4540-aadf-1baf9f00edb0" alt="" width="440"><figcaption></figcaption></figure>

</details>

<details>

<summary>The "No" button</summary>

This button will remove the panel again.&#x20;

</details>

<details>

<summary>Set it to this channel</summary>

This button will set your command channel to the channel where you used the command.

</details>

<details>

<summary>Remove command channel</summary>

This button will remove your command channel, meaning users will be able to use commands everywhere in your server again.&#x20;

</details>

### Disable Snipe

You can disable [the `!snipe` command](#get-the-last-deleted-message) with the `!snipe disable` command. You can enable it again with the `!snipe enable` command.&#x20;

## Tools

The commands below can be used to do something in the server.

### Add a Nitro reaction

With the `!reaction` command you can add a reaction to a message by replying to it.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FhSIr4ZoowJE9LDE8F2ki%2Fimage.png?alt=media&amp;token=f0ad465b-700f-4365-86dc-40c43cc8c538" alt="" width="563"><figcaption></figcaption></figure>

### Send a server rule template message

With the `!rule` command you can send a server-rule template to the channel.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FpH8LdTvrO5SV8eJDmyn1%2Fimage.png?alt=media&amp;token=5d6aed79-328a-428f-9781-ab3fdd2581be" alt="" width="557"><figcaption></figcaption></figure>

### Pin a Message

You can pin a message by replying to it with the `!pin` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F61e2uN3wndunHFdNnhWj%2Fimage.png?alt=media&amp;token=6f1b9b00-9955-478c-8dad-a60400c7a05b" alt="" width="558"><figcaption></figcaption></figure>

### Unpin a Message

You can also unpin a message by replying to it with the `!unpin` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F581ZfpRmor4RlRPVFwSS%2Fimage.png?alt=media&amp;token=2b9ebe6b-b14a-473c-a43e-6e80d486c472" alt="" width="299"><figcaption></figcaption></figure>

### Delete a Message

You can delete a message by replying to it with the `!delete` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FLtox4fqXdxgqDyI12g9J%2Fimage.png?alt=media&amp;token=c5471ffa-d38a-4316-b4ec-f65d41c8c6dd" alt="" width="316"><figcaption></figcaption></figure>

Once deleted, users with the `administration` permisson will be able to view the message content with the "Show message content" button. If you don't want admins to do this, press "Hide", this will delete the panel.&#x20;

### Get the Last Deleted Message

You can get the last deleted message with the `!snipe` command.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FAuexBv5dwNkXEzv5MGR9%2Fimage.png?alt=media&amp;token=0d2796ae-de8f-4a9b-a70c-07702ce1261f" alt="" width="446"><figcaption></figcaption></figure>

If you don't want users to view deleted messages you will also be able to [disable this feature](#disable-snipe) with the `!snipe disable` command.

### Delete a Channel

You can delete a channel by running the `!delete-channel` command in it.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2Fu9kamLY0gDKnzo8RUi0j%2Fimage.png?alt=media&amp;token=27c0ac48-fefe-470f-b8d3-13559a352df7" alt="" width="559"><figcaption></figcaption></figure>

{% hint style="danger" %}
If not canceled, this will delete the channel, that can not be undone!
{% endhint %}

## Get Information

The commands below can be used to get information from the server, bot a user or anything else.&#x20;

### Get a List of Animated Emoji's

With the `!emojis` command you can get a list of animated emoji's you can use with [the animated emojis system](/infinitybot-docs/community-engagement/animated-emojis-without-nitro.md).&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FFMjTcWLeazj70drARGtV%2Fimage.png?alt=media&amp;token=5e628fdb-da2a-4fc1-8368-9f4b85930982" alt="" width="563"><figcaption></figcaption></figure>

### Get Information About Yourself

With the `!me` command you can get information about your own account.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FDzvxgxTCZH9oKitSUtA7%2Fimage.png?alt=media&amp;token=88f99d32-fa7b-4175-8eef-9fc006251c48" alt="" width="563"><figcaption></figcaption></figure>

### Get Information About the Server

With the `!server` command you can get information about the current server.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F0p4ZYqMXDD68i0A78iDu%2Fimage.png?alt=media&amp;token=0593e872-18e3-44ef-a695-f3bc94d768fa" alt=""><figcaption></figcaption></figure>

### Get the Server's Member Count

With the `!member-count` command you can get the member count of the current server.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FtXFHOC9McScRriCEN2CX%2Fimage.png?alt=media&amp;token=057c7fee-5f5d-4f81-bf5c-df7830d20f58" alt=""><figcaption></figcaption></figure>

### Get the Server Count of the Bot

With the !server-count command you can get the server count of InfinityBot.

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FpuPO5EPgjvJQf37Nk330%2Fimage.png?alt=media&amp;token=4c76bcf1-fc4d-467f-9d45-3f81ebd692b5" alt=""><figcaption></figcaption></figure>

### Get the Message Count of the Bot

With the `!message-count` command you can get the total amount of messages InfinityBot saw.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FbY4hmrpnpaK0v6ULKUIJ%2Fimage.png?alt=media&amp;token=9431e180-3270-4d67-bbed-990ca8669747" alt=""><figcaption></figcaption></figure>

## Moderation

With the commands below you can moderate your server. Most of these commands have also been mentioned on [the moderation page](/infinitybot-docs/moderation/basic-moderation-tools.md).

### Mute a User

You can mute a user with the `!mute` command.&#x20;

The template for this command is: `!mute @user time reason`

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FlDRl8eSax8BI49h4OuQq%2Fimage.png?alt=media&amp;token=22c4cd2b-fc1d-4fc8-8029-b8da4db07439" alt=""><figcaption></figcaption></figure>

### Kick a User

You can kick a user with the `!kick` command.&#x20;

The template for this command is: `!kick @user reason`

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2Fy6yiDBH5lLaytOpo1KDP%2Fimage.png?alt=media&amp;token=a7c0d7b9-8e8d-4c46-8a2f-e0368178ab3a" alt=""><figcaption></figcaption></figure>

### Ban a User

You can ban a user with the `!ban` command.&#x20;

The template for this command is: `!ban @user reason`

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FI59GPeam1v2AqnnvzqPl%2Fimage.png?alt=media&amp;token=57aa77c1-6797-4b18-835f-736da8f7eb9d" alt=""><figcaption></figcaption></figure>
