When a user without an account runs a slash command, an account is created automatically and the bot sends them a direct message with their username and password.
Setup
1
Create a Discord bot
Create an application and bot in the Discord Developer Portal, then copy the bot token. See Create a Discord bot token for a detailed walkthrough.
2
Configure bot permissions
- Bot permissions: Send Messages, Use Slash Commands, Embed Links
- Under OAuth2 → URL Generator, select the
botandapplications.commandsscopes, and invite the bot to your server with the generated URL
3
Connect the bot to SunLinks
- Go to the Discord Integration page.
- Enter the Discord Bot Token and your Discord User ID.
- Click Start Bot.
Response format
All bot responses use Discord embeds for clean, structured presentation, readable statistics and consistent formatting.Error handling
- Invalid or expired tokens: bot startup fails with a clear message
- Unauthorized users: restricted command execution
- Missing or incorrect parameters: descriptive error responses
- Internal errors: safe fallback messages without exposing system details