Linked Roles

Grants Discord roles automatically based on ModiQ data - for example from a certain level or with an active boost.

Purpose: Linked Roles connects ModiQ data with Discord's “Linked Roles”. You define up to five metadata fields (for example level, XP, coins, member since, booster), register them with Discord and link them to a role there. Members who connect their account via Server → Linked Roles receive the role automatically once their data meets the condition. Discord assigns the role itself, not the bot.

Metadata fields#

  • Key – Internal key of the field, a–z, 0–9 and _ (max. 50 characters).
  • Display name – Name Discord shows for the field.
  • ModiQ data source – Which value is sent: level, total XP, voice coins, coins (cash), coins (bank), member since, Discord account created on, booster - plus dynamic “has role …”.
  • Comparison type – Discord comparison: number (≤, ≥, =, ≠), datetime (≤, ≥) or boolean (=, ≠).
  • Description – Text the user sees in Discord - Discord requires it.

Discord allows at most 5 fields per app, and they apply to every server of that app.

Setup & synchronization#

  • “Save fields” stores them; “Register with Discord” registers them and sets the verification URL.
  • “Sync now” pushes the data of connected accounts immediately.
  • The metadata is also refreshed automatically every 15 minutes - only on actual changes.
  • In Discord: Server Settings → Roles → role → “Links” → “Add requirement” and pick one of the registered fields with a condition.
  • Users connect their account via Server → Linked Roles and receive the role automatically - Discord grants it, not the bot.

In the “App setup” tab you provide the Application ID (read automatically from the bot token), client secret and redirect URL. Configuration and connected accounts are stored in data/linkedRoles.json, user tokens in data/linkedRolesTokens.json.

Dashboard settings#

SettingTypeMeaning
Linked roles module enabledToggleTurns the module on or off. Disabling it blocks the related features (see the FAQ entry “command blocked”).

Pitfalls#

  • Linked Roles requires a custom bot with a configured client secret; without it the fields cannot be registered.
  • The bot must be installed on the server for verification to work.
  • Under “Connected accounts” you see each account's last push time; “not pushed yet” means the bot has not sent data for it so far.
Last updated