WoW API: UnitIsDND
Checks if a unit is DND (Do Not Disturb).
isDND = UnitIsDND("unit")
ArgumentsEdit
- unit
- The UnitId to return DND status of.
ReturnsEdit
- isDND
- 1 if unit is DND, nil otherwise.
ExampleEdit
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