# Discord Server Setup

To set up the plugin correctly, you must create a Discord bot for your website and give it the correct permissions and settings. For beginning authorize in your profile on [discord.com](https://discord.com/)

Go to an applications page [discord.com/developers/applications](https://discord.com/developers/applications) and press a ***New Application*** button in the top right corner.

![](https://100399986-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgFbNP83FwSgoaG2j98%2F-MgFezOJwjLCAYdjWlkQ%2F-MgFkwp3P5SMJCKXufti%2F2.1.png?alt=media\&token=4ea2141e-1c49-4e01-89f0-696fb44c421d)

You will be asked to assign a name and choose one that is comfortable to remember that this setup is for the website.

Now go to an ***OAuth2*** page from the left side main menu. There, you will find a ***Redirects*** section. Use the ***Add Redirect*** button to add your domain name in the format *<https://my-site.com/>*

![](https://100399986-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgFbNP83FwSgoaG2j98%2F-MgFezOJwjLCAYdjWlkQ%2F-MgFldXmOb-NSL505nBP%2F2.2.png?alt=media\&token=ec8066c4-262d-4333-8ff7-5377bcf522de)

Now go to the ***Bot*** page from the left main menu and use the ***Add Bot*** button to add a new bot.

![](https://100399986-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgFbNP83FwSgoaG2j98%2F-MgFezOJwjLCAYdjWlkQ%2F-MgFllxYMjdsNdy8woIo%2F2.3.png?alt=media\&token=688dfad4-8391-4c6e-a40a-d7e8a613281f)

A new bot will appear. You can assign a username and an icon for the bot. This will be the name and avatar of messages the plugin sends from the website. If you scroll a little further, you will see the bot settings. You must disable the ***PUBLIC BOT*** option for proper work and enable the ***SERVER MEMBERS INTENT*** and ***MESSAGE CONTENT INTENT*** options.

![](https://100399986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkiNqlaiDaCa206FLtqh5%2Fuploads%2FTrjNPShMrsBJ1gzgwYQR%2FScreenshot%202023-08-27%20at%2015.19.10.webp?alt=media\&token=4e283a65-8be5-4935-9e4c-b3b430f8ea40)

Now, go to the general settings of the server in your Discord application (it is <mark style="background-color:red;">not</mark> in discord.com/developers/ portal, look for it in the regular client) and go to the ***Widget*** page. There, enable the ***Enable Server Widget*** option.

![](https://100399986-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgFbNP83FwSgoaG2j98%2F-MgFezOJwjLCAYdjWlkQ%2F-MgFm8Glf-ttuKMqjZIK%2F2.5.png?alt=media\&token=cf65a2d8-9903-4394-b305-930fdd467b89)
