GCMod

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

  1. Go to the Discord Developer Portal and create an application.
  2. Open Bot section and click Add Bot.
  3. Configure bot name/avatar.
  4. Copy your bot token (keep it secure).
  5. In OAuth2, select bot scope and required permissions.
  6. Use generated URL to invite the bot to your server.
  7. 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.