Discord-Ban-Sync is a highly advanced FiveM script that will let you rest assured knowing that those trolls that you banned from your discord won’t go and troll your FiveM server. This script will check against your Discord ban list for the server of your choice using the Discord REST API. This script is highly optimized and works flawlessly.
Configuration
Config = {
Bot_Token = '', -- Your bot token from https://discord.com/developers/applications (See docs for more)
Guild_ID = '', -- The ID for your guild (See docs for more)
webhookURL = '', -- Webhook URL to send logs to
ThereWasAnIssue = 'Sorry, there was an issue checking if you were banned... Please restart FiveM and if the issue persists contact the server owner.'
}
This is so much better than the one I was using by NAT2K15, This one isn’t written in DJS-V11, also this one is written in LUA and is soooo much faster!!! It is so much easier to setup and understand, not to mention that it actually uses the Discord REST API which is much easier to run and is wayyy less resource intensive, awesome release, keep it up!
Glad to see you pushing more things day by day. It’s funny that you post this actually, my friend purchased one by NAT2K15 and he kept complaining about it being Written a certain way and it was just a terrible experience for him. He recent installed your resource and he has no complaints whatsoever!
hello, on my console the following error was returning and it won’t start the server for the user:
SCRIPT ERROR: @Discord-Sync/server.lua:10: attempt to concatenate a nil value
… GetGuildName() … was returning empty, so the error of concatenating the value, I verified that in line 93 of the server.lua of the GetGuildName function, this is “…Config.Guild_ID”, this would be an error and the right thing would be “…Config.Guild_ID…”? why I made this change and stopped returning the error.
I am having an issue.
I have set up the bot correctly and used the correct Token but I keep getting denied entry into the server. It’s the same bot/info for Badger Discord API and those resource work perfectly fine
Hey everyone!
I just pushed a hotfix that should ensure the script works with the new Discord API. To update please simply replace the server.lua file. I plan to fully update the script to a more efficient JavaScript version in the near future.
Unfortunately even eith the hotfix, its still saying there was an issue checking if you were banned, (to everyone) im pretty positive my bot token, and guild id are good, as its the same ones im using for other discord related scripts.