# Setup
To start protecting your server, you must first add the bot. You can do this by using [this invitation](https://discord.com/oauth2/authorize?client_id=1031537502017826826)

!!! Regarding permissions
The default invite has ticked by default `Administrator` permission, which is recommended, but if you are not comfortable with it, you can go check the permission table to see which modules require which permissions
!!!

### Setting up rank system
**D-Security** works with a custom permissions' system, to avoid bias by Discord roles, allowing a better control over your server. 

By default, when adding the bot to a new server, the server owner will automatically receive the **Owner** `(5)` role. To give permissions to other users, the `/rank set <rank>` command can be used.

Rank | ID | Description
--- | --- | ---
Owner | 5 | The guild owner. Has access to all commands.
Extra owner | 4 | The right-hand of the owner. Can manage all ranks and is immune to automod.
Trusted administrator | 3 | Highly trusted staff members. Can manage automod & joingate modules, dmlock, etc.
Administrator | 2 | Staff members responsible for server order. Can ban, quarantine, etc.
Moderator | 1 | Staff members with limited moderation power. Can timeout, kick, etc.
User | 0 | Regular users with no D-Security permissions.

### Enabling Automod Modules
By default, all Automod modules are disabled. You can see a list of all modules by using `/automod info`. To learn more about each module, check the [Automod category](/Automod/index.md). To enable a module, use `/automod module <module>`.
