Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API SendChatMessage

Last wiki revision 2023-08-26

Sends a chat message. SendChatMessage(msg [, chatType, languageID, target])

  • msg: - The message to be sent. Large messages are truncated to max 255 characters, and only valid chat message characters are permitted.
  • chatType: - The type of message to be sent, e.g. . If omitted, this defaults to
  • languageID: - The languageID used for the message. Only works with chatTypes and , and only if not in a group. If omitted the default language will be used: Orcish for the Horde and Common for the Alliance, as returned by
  • target: - The player name or channel number receiving the message for or chatTypes.
  • HW - denotes if the chatType requires a hardware event when in the outdoor world, i.e. not in an instance/battleground.
  • Fires CHAT_MSG_* events, e.g. and
  • "RAID_WARNING" is accessible to raid leaders/assistants, or to all members of a party (when not in a raid)
  • "WHISPER" works across all realms in a region, it's not restricted to connected realms and you don't need to have interacted with the recipient before.

Sends a message, defaults to "SAY".

Sends a /yell message.

Sends a message to General Chat which is usually on channel index 1

Whispers your target.

Sets your /dnd message.

Speaks in Thalassian, provided your character knows the language.

Sends a message to an instance group, raid, or party.

Source

https://warcraft.wiki.gg/wiki/API_SendChatMessage · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.