GET · api v1
Gifts (rewards) given to the member that are not received yet.
المكافآت اللي انعطت للعضو وما استلمها للحين.
| 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 |
|---|---|---|
count | number | Open gifts. |
total | number | Sum of amounts. |
items | table[] | { id, amount, reason, created_at, given_by_name } |
local res = exports.OrcaBot_V3:Get('member.gifts', { target = { source = src }, faction = 'police' })
{
"ok": true,
"data": {
"count": 1,
"total": 12000,
"items": [
{
"id": 77,
"amount": 12000,
"reason": "أفضل أداء",
"created_at": "2026-10-14T20:00:00Z",
"given_by_name": "سعود العنزي"
}
]
},
"meta": {
"action": "member.gifts",
"method": "GET",
"api": 1
}
}