Discord Integration
Overview, architecture, and core flow for gcm_vipsystem.
To enable this module, update config with your Discord server ID:
lua
Config.DiscordRoles = {
enable = false,
serverId = 'SERVER_ID',
}
Enable automatic role management in Discord
- Go to the Discord Developer Portal and create an application.
- Open Bot section and click Add Bot.
- Configure bot name/avatar.
- Copy your bot token (keep it secure).
- In OAuth2, select
botscope and required permissions. - Use generated URL to invite the bot to your server.
- Put the token in
gcm_vips/server/editablesv.lua.
Important: the bot must have role-management permissions and sit above the roles it needs to modify.