GET · api v1
The member's points balance and where the points came from.
رصيد نقاط العضو ومصادرها.
| Name | Type | Required | Description |
|---|---|---|---|
target | Target | required | Who to read about: { source = 7 } for an online player, { discord = "..." } or { code = "P-12" }. |
faction | string | required | The in-game job name linked to the قطاع, e.g. "police". |
res.data)| Name | Type | Description |
|---|---|---|
balance | number | Current balance. |
this_period | number | Points earned in the current period. |
by_source | table[] | { source, label, points } |
local res = exports.OrcaBot_V3:Get('member.points', { target = { source = src }, faction = 'police' })
{
"ok": true,
"data": {
"balance": 140,
"this_period": 35,
"by_source": [
{
"source": "reports",
"label": "التقارير",
"points": 25
},
{
"source": "events",
"label": "الفعاليات",
"points": 10
}
]
},
"meta": {
"action": "member.points",
"method": "GET",
"api": 1
}
}