NX Playerlist
Discord Integration
Show Discord avatars and banners using a bot token.
NX Playerlist can show each player's real Discord profile picture, banner and banner colour. It reads them through Discord's API, which needs a bot token. The bot doesn't need to join your Discord server and doesn't need any permissions or intents.
Create a bot token
Create an application
Go to the Discord Developer Portal and click New Application. Name it anything, for example "My Server Playerlist".
Get the token
Open the Bot tab and click Reset Token. Copy the token that appears. Discord only shows it once.
Paste it into the config
config.luaConfig.UseDiscordAvatars = true Config.DiscordBotToken = 'your_bot_token_here'Restart the resource
Profiles load as players join and appear in the list within a few seconds.
Is my token safe?
Yes. config.lua is loaded on the server only and the token is never sent to players. Still, treat it like a password: don't share your config or post it in screenshots. If it leaks, click Reset Token again to invalidate it.
How it behaves
| Setup | What players see |
|---|---|
UseDiscordAvatars = true | Real Discord avatar, banner and banner colour. |
| Enabled, but no token | Discord's default avatars. No banners. |
UseDiscordAvatars = false | The player's server ID in place of an avatar. |
| Player has no Discord linked | The player's server ID in place of an avatar. |
Good to know
- A player only has a Discord identifier if Discord was running on their PC when they joined.
- Profiles are cached until the resource restarts, so a player who changes their avatar will see it update after the next restart.
- Players without Nitro have no banner. Their profile shows their banner colour instead.
- If Discord rate-limits a request, it's retried automatically on the next refresh.