Returns whether a unit is marked AFK (Away From Keyboard)


See also Unit functions.

Signature:

isAFK = UnitIsAFK("unit") or UnitIsAFK("name")

Arguments:

  • unit - A unit to query (string, unitID)
  • name - The name of a unit to query; only valid for player, pet, and party/raid members (string)

Returns:

  • isAFK - 1 if the unit is AFK; otherwise nil (1nil)