- serverId:
integer- The server ID of the player you want to retrieve the discord info for.
false or table
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
exports.trase_discord:getRoles(serverId)
integer
false or table
RegisterCommand('getRoles', function(src)
local roles = exports.trase_discord:getRoles(src)
if (not roles) then
-- Player was not in the discord, no user found
return
end
print(json.encode(roles, { indent = true }))
end)