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

  1. Create an application

    Go to the Discord Developer Portal and click New Application. Name it anything, for example "My Server Playerlist".

  2. Get the token

    Open the Bot tab and click Reset Token. Copy the token that appears. Discord only shows it once.

  3. Paste it into the config

    config.lua
    Config.UseDiscordAvatars = true
    Config.DiscordBotToken   = 'your_bot_token_here'
  4. 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

SetupWhat players see
UseDiscordAvatars = trueReal Discord avatar, banner and banner colour.
Enabled, but no tokenDiscord's default avatars. No banners.
UseDiscordAvatars = falseThe player's server ID in place of an avatar.
Player has no Discord linkedThe 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.