Discord bot
Linked Roles
Discord's own role requirements, filled in by Spotlight. A member connects once and gets roles on every server with the bot, with a Spotlight badge next to their name.
For members#
- In a server: the server name → Linked Roles → pick a role that needs Spotlight → Connect.
- Or open spotlight.baby/linked-roles. Spotlight only asks for your Discord ID and permission to set these facts.
- The facts refresh every hour, so a new RPG level or Premium shows up by itself.
For server owners#
- Server Settings → Roles → a role → Links → Add requirement → Spotlight.
- Pick what it needs. A role can combine several, and other apps too.
What a role can check
| Spotlight member | yes / no | Has a Spotlight account |
| Spotlight Premium | yes / no | Has Spotlight Premium |
| Days on Spotlight | at least N days | Days since the Spotlight account was made |
| RPG level | at least N | Level of their hero in the Spotlight bot's RPG |
| Bot achievements | at least N | Achievements earned with the Spotlight bot |
Game ranks
Linked Roles have room for 5 facts, so game ranks stay with the bot's rank roles (Panel → Games), which give real roles per game from linked Spotlight accounts.Setup (bot owner)#
Set DISCORD_BOT_CLIENT_ID and DISCORD_BOT_CLIENT_SECRET (the bot's application), add <site>/api/linked-roles/callback as an OAuth2 redirect, and set Linked Roles Verification URL to <site>/api/linked-roles in the Developer Portal. The facts Discord can check are registered on the first connection.