onlyserverconfig
Description
The server config.
Parameters
Name | Description |
---|---|
version | The version of the server shown in loading screen. |
identifier | The identifier got from fivem for the user id, typically 'discord'. |
discord | An object containing configurations for the Discord integration. |
discord.token | The bot token for the Discord API. |
discord.guild | The ID of the Discord server (guild) where the bot operates. |
discord.announcements | The ID of the channel used for sending announcements. This will be shown in the loading screen. |
discord.roles | An object containing role IDs for the a rol name. |
discord.whitelist_roles | Roles that grant whitelist access to the server. |
discord.queue_roles | The queue priority roles from lowest to highest. |
discord.verified_roles | The roles that mark a user as verified. |
discord.admin_roles | Roles that grant full administrative access to the server. |
restart | An object containing configurations for server restarts. |
restart.times | Times at which the server will automatically restart. Must be the same as TxAdmin. From lower to higher. Format: HH:MM. |
restart.notify | Times (in minutes) to notify players before the server restarts. Example: [1, 5, 15, 30]. |
logging | An object containing logging configurations for different modules. |
logging.saveable | Enables or disables saving logs to db. |
logging.printable | Enables or disables printing logs to console. |
logging.webhook | The webhook URL for sending logs to a Discord channel. |