

Forge 1.20.1, with newer/older versions releasing soon, as well as soon to support other mod loaders like Fabric.New Application, set everything how you want the bot to look like (not going to go in depth of the full Discord bot stuff here, watch a tutorial on YouTube.), when everything is setup and the bot is invited to the discord server you want it in, go the the Bot tab, and you'll see a section called Token. 
Reset Token, then a string of characters will be generated. Click copy token, then in your server files, go into the config folder, and look for forgediscord-common.toml. At the top of the file, there will be a line saying token: "YOUR_TOKEN_HERE", paste in the token that Discord gave you, save the file, then restart the server. To see if the mod connected to the bot, you can type /discord bot in game, or you can look at the member list in the Discord server to see that the bot is online.