diff --git a/Discord-bot-setup.md b/Discord-bot-setup.md index dfd3e76..092a27d 100644 --- a/Discord-bot-setup.md +++ b/Discord-bot-setup.md @@ -1,5 +1,7 @@ (based upon https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token) +## New application + First you need to go to [here](https://discordapp.com/developers/applications/me) and click "New Application" ![Application Screen](https://i.imgur.com/6WrvbNe.png) @@ -22,11 +24,15 @@ On the Bot screen you will get to see your token, you can click "Copy" to put it On this Same Screen you can toggle if the bot is public (which will allow others to invite to their servers, this is on by default). ![Bot Screen 1](https://i.imgur.com/sibnz9u.png) +## Privileged Gateway Intents + Make sure to also toggle the "Server Members Intent" option further down under "Privileged Gateway Intents" to allow the bot to see the member list, otherwise you'll get an error message similar to `Error obtaining server members: HTTP 403 Forbidden, {"message": "Missing Access", "code": 50001}`. Click "Save Changes" ![Server Members Intent](https://i.imgur.com/FIHvhNt.png) +## Invite bot + Now its time to invite your bot to your server. Don't worry about your bot being started for this next step. You can get this under General Information ![Client ID](https://i.imgur.com/xS2IveF.png) @@ -48,6 +54,8 @@ Then you should see You can confirm the bot is added under Your Guild > Settings > Integrations > Bots and Apps, and in your #general channel you should see "A wild [bot name] appeared!". +## Take token + Take the bot's token (the _token_, not the client ID) and add it to your matterbridge config like so: ```