Performs a preset emote (with optional target). The list of built-in emote tokens can be found in global variables whose names follow the format "EMOTE"..num.."_TOKEN", where num is a number between 1 and MAXEMOTEINDEX (a variable local to ChatFrame.lua.)

For custom emotes (as performed using the /emote or /me commands in the default UI), see SendChatMessage().


See also Chat functions.

Signature:

DoEmote("emote" [, "target" [, hold]])

Arguments:

  • emote - Non-localized token identifying an emote to perform (string)
  • target - Name of a unit at whom to direct the emote (string)
  • hold - Hold the emote animation until cancelled (boolean)