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