Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!
Checks if a unit is DND (Do Not Disturb).
isDND = UnitIsDND("unit")
- The UnitId to return DND status of.
- 1 if unit is DND, nil otherwise.
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