[RELEASE] Discord Ban Sync

Discord-Ban-Sync

What is it?

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.'
}

Acknowledgments

Acknowledgments

Badger - Created Badger Discord API

Photos

Downloads

GitHub - Jordan2139
Direct Download

6 Likes

Wow cool release dude!

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!

1 Like

Amazing work Jordan!

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!

1 Like

Anytime! I love helping you guys out on a daily basis!

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.

Can you post a photo of your config.lua, excluding your bot token please?

Also, did you actually invite the bot to your server?
@TripaSeca

I invited the bot, I gave it all permissions, but now it’s saying on the console that I couldn’t verify, can you help me?

I think my problem is with guild_id, just to be sure, is guild id the server id of discord?

console:

config.lua
imagem_2021-07-08_222457

server discord:
bot: imagem_2021-07-08_222613
webhook:

sorry about my English

Yes, the guild (aka server) ID would be the ID of the main server you are checking and the ID of the guild that the bot is in

local bottoken = "Bot " … Config.BotToken is it supposed to be like that ?

Yep, just edit the config, nothing else

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

same here it just won’t let me in and I’m positive everything is setup correctly

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.

Sorry for any instability

Download Update Here

GitHub - Jordan2139

1 Like

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.

Ensure that your bot has permissions in your server and also has members intents on

Hello, I contact you because no answer, I have exactly the same problem as you, did you find the solution for the file server.lua line 10?

Thanks in advance, Sincerely

Lets say i ban someone, would this also log that? or does it just log it when someone tries to join that is banned?

Can someone make it where it when a player is in game and their banned from discord, it syncs it and bans em via in-game