GET · api v1
The top members of a leaderboard panel.
أعلى الأعضاء في لوحة المتصدرين.
| Name | Type | Required | Description |
|---|---|---|---|
faction | string | required | The in-game job name linked to the قطاع, e.g. "police". |
panel | number | optional | Panel id from the dashboard; default is the قطاع's first panel. |
limit | number | optional | 1 to 25, default 10. |
res.data)| Name | Type | Description |
|---|---|---|
panel | table | { id, title } |
entries | table[] | { rank, discord_id, name, code, value } — value is the final score in percent. |
local res = exports.OrcaBot_V3:Get('faction.leaderboard', { faction = 'police', limit = 5 })
{
"ok": true,
"data": {
"panel": {
"id": 3,
"title": "ساعات الأسبوع"
},
"entries": [
{
"rank": 1,
"discord_id": "381234567890123456",
"name": "فهد العتيبي",
"code": "P-12",
"value": 96.5
}
]
},
"meta": {
"action": "faction.leaderboard",
"method": "GET",
"api": 1
}
}