# Commands

#### Auto Delete Wizard Commands

Auto Delete Wizard helps you automatically manage and clean up your Discord server channels, keeping them organized and clutter-free.

***

**Table of Contents**

1. Command Overview
2. Permission System
3. Setting Up Auto Delete Rules
4. Removing Auto Delete Rules
5. Permission Commands
6. Info and Help

***

#### Command Overview

Auto Delete Wizard now uses **slash commands** for easier interaction within Discord’s native interface. Simply type `/` followed by the command name to use the bot.

***

#### Permission System

Auto Delete Wizard includes a permission system that controls who can access its commands. By default, server administrators and owners have full access. Custom roles can be added or removed to manage access.

***

#### Setting Up Auto Delete Rules

Use the following commands to set up auto-deletion rules in a specific channel:

1. **/time**: Set the time limit for auto-deletion.
   * Example usage: `/time 2h` (deletes messages older than 2 hours)
   * Example usage: `/time 1d` (deletes messages older than 1 day)
2. **/count**: Set the maximum number of messages to retain in the channel.
   * Example usage: `/count 100` (keeps only the last 100 messages)
3. **/zerohour**: Set the specific time of day for auto-deletion to occur.
   * Example usage: `/zerohour 8PM`
   * Example usage: `/zerohour 11AM`

***

#### Removing Auto Delete Rules

Use the `/remove` command to remove all auto-delete rules from a channel.

**Example usage**:

* `/remove` (removes all rules from the channel)

***

#### Permission Commands

Manage who can use the bot's commands with these permission commands:

* `/add_role [role]`: Add a role to the permission list, allowing users with that role to use the bot's commands.
  * Example usage: `/add_role @Moderator`
* `/remove_role [role]`: Remove a role from the permission list.
  * Example usage: `/remove_role @User`
* `/who_role`: List roles that currently have permission to use the bot.
  * Example usage: `/who_role`

***

#### Info and Help

* `/info`: Get information about Auto Delete Wizard. Available to all users.
* `/help`: Access a detailed guide on how to use the bot and its commands.

**Example usage**:

* `/info`
* `/help`

***

***

With these commands, you can effectively manage and automate message deletion in your Discord server channels using Auto Delete Wizard. Enjoy a clutter-free environment!

*Note: Make sure to adjust permissions and roles according to your server's needs.*

<br>
