FANDOM


This function sends a message via chat to any number of chat channels or methods. It has no return value.

SendChatMessage("msg" [,"chatType" [,"language" [,"channel"]]])

msg = The text you wish to send.

chatType = The type of message this is. nil to use SAY.

"SAY", "EMOTE", "YELL", "PARTY", "GUILD", "OFFICER", "RAID", "RAID_WARNING", "BATTLEGROUND", "WHISPER", "CHANNEL", "AFK", "DND"

language = The language to send message with. nil to use faction common language.

"COMMON", "DARNASSIAN", "DWARVEN", "DRAENEI", "TAURAHE", "ORCISH", "GUTTERSPEAK", "DEMONIC", "DRACONIC", "KALIMAG", "TITAN", "GNOMISH", "TROLL"

channel = The channel to send this message to. Only used if chatType is WHISPER or CHANNEL. Use GetChannelName("channelName") to obtain this value, or use the whisper target's name.