Information
After months grm-discord is back with an updated and improved version, have fun with the new functions to integrate Discord into your scripts!
Functions available
Set Nickname
Add Role
Remove Role
Have Roles
Get Guild Info
Get Roles Info
Get User Info
Download Now
6 Likes
Hey!
Thank you for this resource but I have problems
ESX.RegisterCommand('testdiscord', 'admin', function(xPlayer, args, showError)
local Discord = exports["grm-discord"]
Discord:GetUser(xPlayer, true)
end, true, {help = 'Mettre à jour la colonne "image" de la table "vehicles" en définissant toutes les valeurs à NULL'})
And I am successfully connected to Discord when connecting to the server
@SamBradley xPlayer is a table, what you’re looking for is xPlayer.source (the id)
Read the readme.md carefully to avoid having this type of problem.
local Discord <const> = exports["grm-discord"]
ESX.RegisterCommand('testdiscord', 'admin', function(xPlayer, args, showError)
local user = Discord:GetUser(xPlayer.source, true)
print(json.encode(user, { indent = true }))
end, true, {help = 'Mettre à jour la colonne "image" de la table "vehicles" en définissant toutes les valeurs à NULL'})
We got always the error @grm-discord /server.lua:28: Unauthorized token!
can u give me a tip please, who i can fix this?
Hi,
i was wondering if you would have the time to add a function where you can private message a person, this would be lovely to use for appointmets, messaging when players arent IC. Everyone sees webhooks, but personal messages would be lovely.
elitevie:
what does this do
Hi! This script allows you to get data and manage the users on your Discord server. For example, you can add or remove a role from a user, time them out, ban them, and much more.