Discord Bot Setup
Follow these steps to get your 919Admin Classic Discord bot working correctly. Do not skip any steps.
Creating the Bot
- Log into the Discord Developer Portal
- Click New Application in the top right and complete the form
- Open the Bot category on the left sidebar
- Under Token, click Reset Token and copy the token somewhere safe
- Scroll down to Privileged Gateway Intents and enable Message Content Intent
Inviting the Bot to Your Server
- Open the OAuth2 category on the left sidebar
- Under OAuth2 URL Generator, select bot, then check Administrator in the permissions box
- Copy the generated URL, paste it into your browser, and complete the form to invite the bot to your server
Configuring the Resource
- In
config_server.lua, paste your token intoConfig.DiscordBot.Token - Create a new channel in your Discord server for the bot (or choose an existing one)
- Create a webhook for that channel and paste the webhook URL into
Config.DiscordBot.Webhook - Right-click the channel and click Copy Channel ID, then paste it into
Config.DiscordBot.ChannelID - Grant the bot user the following permissions on that channel: View Channel, Send Messages, Read Message History
If you don't see Copy Channel ID when right-clicking a channel, you need to enable Discord Developer Mode first.