The configuration file can be either a JSON file (.json
) or a YAML file (.yaml
or .yml
). YAML file can include anchors and merges. It is used to describe the wanted state or a Discord server (guild). A JSON Schema is also available.
Table of content
Fields
items
: List of roles.extra_items
: Extra items params.
Fields
name
(string
) : Name of the role.⚠️ Every role needs to have a unique name.
permissions
(Permission[]
) : List of permissions.show_in_sidebar
(bool
) : Show connection status of members with this role in the Members sidebar. The members will be categorized by role.is_mentionable
(bool
) : Allow everyone to mention this role with@
(ex:@team-01
).color
(optionalstring
) : Color of the role, in hexadecimal format (without the#
).
Important notes
- You cannot directly rename a role. The role will be deleted and recreated under a different name.
- To rename a role, please rename it in the Discord interface first, then in the config.
- Every members associated to a role that's been deleted will lose that role.
Fields
strategy
(string
): Strategy for handling extra roles. Options:REMOVE
,KEEP
. Default:KEEP
.
Fields
items
: List of categories.extra_items
: Extra items params.
Fields
name
(string
) : Name of the category.⚠️ Every category needs to have a unique name.
permissions_overwrites
(PermissionsOverwrite[]
) : List of permissions overwrites.extra_channels
:strategy
(string
): Strategy for handling extra channels under this category. Options:REMOVE
,KEEP
,SYNC_PERMISSIONS
. Default:KEEP
.SYNC_PERMISSIONS
updates permissions to match categorie's.
Fields
strategy
(string
): Strategy for handling extra categories. Options:REMOVE
,KEEP
. Default:KEEP
.
Fields
items
: List of channels.extra_items
: Extra items params.
Fields
name
(string
) : Name of the channel.type
(optionalstring
) : Type of channel. Currently supported areTEXT
andVOICE
. Default:TEXT
.category
(optionalstring
) : Name of the channel's parent category.⚠️ Every channel needs to have a unique combination of name, category and type.
topic
(optionalstring
) : Topic of the channel.permissions_overwrites
: Params for setting the permissions overwrites.
Important notes
- You cannot directly rename a channel. The channel will be deleted and recreated under a different name.
- To rename a channel, please rename it in the Discord interface first, then in the config.
- Deleted channels will lose all their messages.
- You currently cannot allow channels that are not listed in the config. This should be soon permitted, at least for channels associated to categories.
Fields
strategy
: Strategy for setting the permissions overwrites.
Manualy define the list of permissions overwrites.
Fields
items
(PermissionsOverwrite[]
): List of permissions overwrites.- default:
[]
- default:
Use permissions overwrites from category.
Important notes
- This option will panic if the channel is not associated to a category.
Fields
strategy
(string
): Strategy for handling extra channels. Options:REMOVE
,KEEP
. Default:KEEP
.
Overwrites of permissions to apply to a specific context only. You can read more on the Discord Developer Portal.
Fields
role
(string
) : Name of the role to apply overwrites to.allow
(Permission[]
) : Specifically allowed these permissions. for the role.deny
(Permission[]
) : Specifically denied these permissions. for the role.
Uppercase string
that represents Discord permissions. You can read more on the Discord Developer Portal.