Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns true if a unit is DND (Do not disturb).

isDND = UnitIsDND(unit)

Arguments[]

unit
The UnitId to return DND status of.

Returns[]

isDND
1 if unit is DND, nil otherwise.

Example[]

If the player is DND, the following script outputs "You are DND" to the default chat window.

if UnitIsDND("player") then
  DEFAULT_CHAT_FRAME:AddMessage("You are DND");
end
Advertisement