Linking discord to the beammp server

I would like to have a whitelist system that is automatic. It will kick you if you havent joined the discord. If you joined the discord you will have to put your beammp into the discord server and it will whitelist you on the server

BeamMP is no longer tied to a discord account. I heared that it was possible to get the discord id years ago from the beammp api, but that is no longer. If you do plan to make that then look into the client side scripting, but i doubt that the games scripting sandbox will allow you to talk to anything but the game itself. Maybe someone else has done it yet and may share how they did that