member.hiring_bans

GET · api v1

Hiring bans on this member across the server's قطاعات.

منع التوظيف على العضو في قطاعات السيرفر.

Parameters

NameTypeRequiredDescription
targetTargetrequiredWho to read about: { source = 7 } for an online player, { discord = "..." } or { code = "P-12" }.
factionstringoptionalLimit the answer to one قطاع (job name).

Returns (res.data)

NameTypeDescription
bannedbooleanAt least one active ban.
banstable[]{ faction, permanent, ends_at, reason }

Possible errors

Notes

Example

local res = exports.OrcaBot_V3:Get('member.hiring_bans', { target = { source = src } })
if res.ok and res.data.banned then
    -- refuse the hire
end

Example output

{
  "ok": true,
  "data": {
    "banned": true,
    "bans": [
      {
        "faction": {
          "name": "police",
          "label": "الشرطة"
        },
        "permanent": false,
        "ends_at": "2026-11-01T00:00:00Z",
        "reason": "إساءة استخدام الصلاحيات"
      }
    ]
  },
  "meta": {
    "action": "member.hiring_bans",
    "method": "GET",
    "api": 1
  }
}