> For the complete documentation index, see [llms.txt](https://vanguard-7.gitbook.io/vanguards/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vanguard-7.gitbook.io/vanguards/configuration-and-customization.md).

# Configuration & Customization

## ⚙️ Configuration & Customization

VanGuard offers a wide range of configurable settings that allow you to personalize the bot's behavior, appearance, and functionality. Customize everything from your server’s prefix to moderation settings and more!

***

### 1. 🔑 Configuring Prefix

You can change VanGuard's prefix to suit your server’s needs. The default prefix is `!`, but you can set a custom one easily.

To change the prefix, use the following command:

```
!setprefix <newprefix>
```

For example, to set the prefix to `!` (or any other symbol you prefer):

```
!setprefix !
```

***

### 2. 🔒 Permissions & Roles

VanGuard gives you full control over who can access and use certain commands. You can assign roles and permissions to restrict access to specific bot features.

#### Role Permissions:

* `!role add @user [role]` — Assign a role to a user
* `!role remove @user [role]` — Remove a role from a user
* `!role list` — View the roles assigned to users

Additionally, you can limit commands to certain roles with:

```
!config permissions [command] [role]
```

For example, restrict the `!ban` command to Admins only:

```
!config permissions ban Admin
```

***

### 3. 🔄 Server Settings

VanGuard allows you to manage server-specific settings, including notifications, logging, and feature toggles. Use the `!config` command to access the configuration panel.

#### Available Settings:

* `!config notifications enable/disable` — Toggle event notifications (e.g., bans, joins).
* `!config logchannel <#channel-name>` — Set up a channel to log moderation events.
* `!config automod enable/disable` — Turn AutoMod on or off.
* `!config captcha enable/disable` — Toggle Captcha verification for new members.
* `!config raidmode enable/disable` — Enable/Disable raid protection mode.

***

### 4. 📝 Message Customization

Customize welcome messages, goodbye messages, and more using the `!setmessage` command.

#### Example Commands:

* `!setmessage welcome [message]` — Customize the welcome message for new members.
* `!setmessage goodbye [message]` — Customize the goodbye message for members leaving.
* `!setmessage verification [message]` — Customize the verification prompt sent to new members.

You can include placeholders like `{user}` and `{server}` in your messages, which will be replaced with the user’s name and server name, respectively.

***
