Lyra Admin · Staff
Discord bot
Your own bot: ranks from roles, staff picker and slash commands.
Set up
- discord.com/developers → New Application → Bot → Reset Token. Copy the token.
- On the same page turn on "Server Members Intent".
- In-game as owner: Lyra → Settings → Discord bot. Paste the token, invite the bot with the button, paste your Discord server ID.
- Map roles to ranks. Members with those roles get the rank in-game and on the web panel.
Slash commands
Registered automatically once the bot and the web panel are set up:
| Command | What it does | Permission |
|---|---|---|
/players | Online players with their IDs | players.view |
/kick player reason | Kick by server ID or name | mod.kick |
/ban player reason [duration] | Ban (30m, 12h, 7d; empty = permanent) | mod.ban |
/reports [id] | Open reports, or one report in detail | reports.view |
Commands use the rank of the Discord account (added in-game or by role), with the same hierarchy and audit log as the menu.
Log webhooks
lua
Config.Discord = {
webhooks = {
['*'] = 'https://discord.com/api/webhooks/...', -- every category
moderation = 'https://discord.com/api/webhooks/...',
},
}Last updated 27 Oct 2026 by Lyra