> 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/moderation/anti-nuke/action-commands.md).

# Action Commands

Users with the right permissions can use the commands below to manage your server.

{% hint style="info" %}
A user needs permission to use the commands below. You can read more on how to set these permissions up [here](/infinitybot-docs/moderation/anti-nuke/antinuke-setup.md#permissions-setup-commands).
{% endhint %}

### Create or Delete a Channel

Users can create or delete channels with the `/mod channel` command.&#x20;

{% hint style="info" %}
This command requires the manage channel permission.
{% endhint %}

| Command Option Name | Function                                                                                                                                                                      |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                                                                                                       |
| channel             | With this option you can select a channel that you want to delete when deleting one. If you are creating a channel, this will be the channel category of the created channel. |
| reason              | An optional reason for your action.                                                                                                                                           |
| cant-see-channel    | With this option you can optionally select a role that can't see the created channel.                                                                                         |
| can-see-channel     | With this option you can optionally select a role that can see the created channel.                                                                                           |

When you are creating a channel, you will get a form when you use the command. You can view it's questions below.

| Form question       | Function                             |
| ------------------- | ------------------------------------ |
| Channel name        | The name of your new channel.        |
| Channel description | The description of your new channel. |

### Create or Delete a Role

Users can create or delete roles with the `/mod role` command.&#x20;

{% hint style="info" %}
This command requires the manage roles permission.
{% endhint %}

| Command Option Name | Function                                                                                                                        |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| action              | With this option you can select the action that you would like to take.                                                         |
| role                | With this option you can select a role to delete if deleting one, if you are not deleting a role this option can be left empty. |
| reason              | An optional reason for your action.                                                                                             |

When you are creating a role, you will get a form when you use the command. You can view it's questions below.

| Form question | Function                   |
| ------------- | -------------------------- |
| Role name     | The name of your new role. |

### Add or Remove a Role from a User

With the `/user role` command you can add or remove roles from a user.

{% hint style="info" %}
This command requires the user role or manage role permission.
{% endhint %}

| Command Option Name | Function                                                                               |
| ------------------- | -------------------------------------------------------------------------------------- |
| action              | With this option you can select whether you want to remove or add a role from a user.  |
| user                | With this option you can select the user on who you want to preform the action.        |
| role                | With this option you can select the role that you want to add or remove from the user. |

### Mute a User

Users can use the `/user mute` command.&#x20;

| Command Option Name | Function                                                       |
| ------------------- | -------------------------------------------------------------- |
| user                | In this option you can select the user you would like to mute  |
| duration            | In this option you can select the duration of the mute         |
| reason              | In this option you can optionally enter the reason of the mute |

### Kick a User

Users can use the `/user kick` command to kick a user from the server.

{% hint style="info" %}
This command requires the kick members permission.
{% endhint %}

| Command Option Name | Function                                                            |
| ------------------- | ------------------------------------------------------------------- |
| user                | With this option you can select a user that you would like to kick. |
| reason              | An optional reason for your action.                                 |

### Ban a User

Users can use the `/user ban` command to ban a user from the server.

{% hint style="info" %}
This command requires the ban members permission.
{% endhint %}

| Command Option Name | Function                                                           |
| ------------------- | ------------------------------------------------------------------ |
| user                | With this option you can select a user that you would like to ban. |
| reason              | An optional reason for your action.                                |

### Unban a User

Users can use the `/user unban` command to unban a user from the server.

{% hint style="info" %}
This command requires the unban members permission.
{% endhint %}

| Command Option Name | Function                                                                                                                        |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| user-id             | The [user ID](/infinitybot-docs/guides/discord-guides/how-to-get-an-id-on-discord.md) of the user that you would like to unban. |
| reason              | An optional reason for your action.                                                                                             |

***

#### [Back to main AntiNuke page](/infinitybot-docs/moderation/anti-nuke.md)
