member.vacation

GET · api v1

The member's current or next vacation in a قطاع, and their vacation balance.

الإجازة الحالية أو القادمة للعضو في القطاع، ورصيد إجازاته.

Parameters

NameTypeRequiredDescription
targetTargetrequiredWho to read about: { source = 7 } for an online player, { discord = "..." } or { code = "P-12" }.
factionstringrequiredThe in-game job name linked to the قطاع, e.g. "police".

Returns (res.data)

NameTypeDescription
currenttable|nil{ type, starts_at, ends_at, days_left }
nexttable|nilThe next scheduled vacation, same shape.
balance_daysnumberDays left in the vacation wallet.
reasonstring|nilThe vacation reason written by the member.

Possible errors

Notes

Example

local res = exports.OrcaBot_V3:Get('member.vacation', { target = { source = src }, faction = 'police' })
if res.ok and res.data.current then
    print('On leave until', res.data.current.ends_at)
end

Example output

{
  "ok": true,
  "data": {
    "current": {
      "type": "عادية",
      "starts_at": "2026-10-15T00:00:00Z",
      "ends_at": "2026-10-19T00:00:00Z",
      "days_left": 4
    },
    "next": null,
    "balance_days": 6,
    "reason": "سفر"
  },
  "meta": {
    "action": "member.vacation",
    "method": "GET",
    "api": 1
  }
}