Fandom

WoWWiki

API UnitIsDND

104,757pages on
this wiki
Add New Page
Talk0 Share
WoW API < UnitIsDND

Checks if a unit is DND (Do Not Disturb).

isDND = UnitIsDND("unit")

Arguments Edit

unit 
The UnitId to return DND status of.

Returns Edit

isDND 
1 if unit is DND, nil otherwise.

Example Edit

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.