# Serverconfig

#### Description

The `serverconfig` command allows server admins to set various settings of the bot.

#### Required Arguments&#x20;

None

{% hint style="info" %}
Using this command with no arguments will give instructions on how to use it.
{% endhint %}

#### Optional Arguments

*For configuration:*

`element` - A valid config element.

| Config Element     | Function                                                                                                                                  | Valid Inputs              |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| adminrole          | Anyone with this role can edit your server config (as can anyone with the Manage Server permission) and use all staff commands            | Role name                 |
| reviewrole         | Anyone with this role can use all staff comands                                                                                           | Role name                 |
| reviewchannel      | Channel where suggestions awaiting review are posted                                                                                      | Channel ID or #mention    |
| suggestionschannel | Channel where suggestions that are approved are posted                                                                                    | Channel ID or #mention    |
| deniedchannel      | Channel where suggestions the are denied/deleted are posted. NOTE: This element is **optional**, the bot will still work if it is not set | Channel ID or #mention    |
| prefix             | The prefix that all commands start with Example: in `.command` the prefix is `.`                                                          | Any string with no spaces |

{% hint style="warning" %}
Some of these elements **must** be configured before the bot will work.

* [x] adminrole
* [x] reviewrole
* [x] reviewchannel
* [x] suggestionschannel
* [ ] deniedchannel
* [ ] prefix

The deniedchannel and prefix elements are optional. If prefix is not configured, it will be the default `.` prefix.
{% endhint %}

* `setting` - A valid setting (see "Valid Inputs" on the above table)

*For viewing current settings:*

* `element` - A valid config element (see "Config Element" column on the above table) or `list` to list all config.

#### Usage

```
.serverconfig (element) (setting)
```

{% hint style="info" %}
Arguments in `[brackets]` are required, while arguments in `(parenthesis)` are optional.
{% endhint %}

#### Permission Required

Any user with the **Manage Server** permission, or the configured admin role.
