DiscordAcePerms [Release]

NEW UPDATE

Since multiple people complained about the relog deferral message, I used AdaptiveCards instead for informing people the script did not find their Discord

Example Config File:

Config = {
	Server_Name = "[SERVER_NAME]",
	Discord_Link = 'https://discord.gg/',
	Website_Link = 'https://badger.store/',
	roleList = {
		{778070857964716033, "group.member"},
		{778084605198204948, "group.booster"},
		{778078566726369360, "group.certified"},
		{778076976345907250, "group.subscriber"},
		{778074943824592916, "group.moderator"}, 
		{778075273065136149, "group.owner"}, 
	},
}

Someone please remind me to add this to the current documentation located at https://docs.badger.store when I get the chance. Thank you.

4 Likes

vMenu uses ace permissions… How would I go about linking the groups to a role in discord through the vMenu permissions.cfg?

I got this error when loading into the server, it says “DiscordAcePerms: deferring connection” then fails. I’ve setup discord_perms and added the lines to my server.cfg. any idea what I’m doing wrong?

1 Like

Read documentation :man_facepalming:… This script does not use discord_perms

If this script no longer uses the dependencies listed in the original post, please update the original post.

As badger said the script no longer uses discord_perms it now uses Badger_Discord_API

yeah, I read that in the original documentation, and thought this used the same one, as the last one. I got it fixed at least, hopefully the original documentation gets changed, since that’s the one I most people read, hence my confusion. Thanks for the help, I appreciate you taking the time to reply.

1 Like

Hey, I did everything as I should, and have tried to read the documentation to find a clue, however I cannot figure this out. https://i.imgur.com/zqW2Pdn.png

I am also having the same issue, not sure why it is happening though.

can someone help me i keep getting the same error its
Error loading script server.lua in resource Badger_Discord_API: @Badger_Discord_API/server.lua:1: attempt to concatenate a nil value (field ‘Bot_Token’)
stack traceback:

can someone plz help

what is this , SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:955: No such export GetDiscordRoles in resource Badger_Discord_API

Anyone know what could be causing this?? I’m noticing it’s not just me.

I’ve checked the server.lua and it was there, but it wasnt “functioning”?

you would go to discordaceperms, and then you would have to make it so it gives people the moderator/admin group upon joining, then it would work the same as steam hex’s except theres no need to give people perms based off of steam hex’s.

1 Like

have you installed Badger_Discord_API? If you havent you need to install that. If you have it installed double check your config file where the bot token is, that might be incorrect.

1 Like

i am getting the problem where it says deferring connection and then after about a minute it says failed to handshake

May I ask how?
I have the same issue with the Faxes AOP

1 Like

Works just fine for me, Try reinstalling it and double check all config files

Hi, Im getting stuck on deffering connection and and then it says failed to handshake with server

SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:955: No such export GetDiscordRoles in resource Badger_Discord_API

But when I check its there. Plz help :)))

how would i go about using this for vMenu