WoW:ChatTypeInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (defined the .id from ??? to what it is and where defined)
m (Move page script moved page ChatTypeInfo to ChatTypeInfo without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 48: Line 48:
*ChatTypeInfo["RAID_BOSS_EMOTE"]
*ChatTypeInfo["RAID_BOSS_EMOTE"]
*ChatTypeInfo["FILTERED"]
*ChatTypeInfo["FILTERED"]
*ChatTypeInfo["BATTLEGROUND"]
*ChatTypeInfo["INSTANCE_CHAT"]
*ChatTypeInfo["BATTLEGROUND_LEADER"]
*ChatTypeInfo["INSTANCE_CHAT_LEADER"]
*ChatTypeInfo["RESTRICTED"]
*ChatTypeInfo["RESTRICTED"]
*ChatTypeInfo["CHANNEL1"]
*ChatTypeInfo["CHANNEL1"]

Latest revision as of 04:47, 15 August 2023

WoW API

ChatTypeInfo[edit]

Returns a table with attributes for the different types of messages that appear in the chat frame:

  • ChatTypeInfo["SYSTEM"]
  • ChatTypeInfo["SAY"]
  • ChatTypeInfo["PARTY"]
  • ChatTypeInfo["RAID"]
  • ChatTypeInfo["GUILD"]
  • ChatTypeInfo["OFFICER"]
  • ChatTypeInfo["YELL"]
  • ChatTypeInfo["WHISPER"]
  • ChatTypeInfo["WHISPER_INFORM"]
  • ChatTypeInfo["BN_WHISPER"]
  • ChatTypeInfo["REPLY"]
  • ChatTypeInfo["EMOTE"]
  • ChatTypeInfo["TEXT_EMOTE"]
  • ChatTypeInfo["MONSTER_SAY"]
  • ChatTypeInfo["MONSTER_PARTY"]
  • ChatTypeInfo["MONSTER_YELL"]
  • ChatTypeInfo["MONSTER_WHISPER"]
  • ChatTypeInfo["MONSTER_EMOTE"]
  • ChatTypeInfo["CHANNEL"]
  • ChatTypeInfo["CHANNEL_JOIN"]
  • ChatTypeInfo["CHANNEL_LEAVE"]
  • ChatTypeInfo["CHANNEL_LIST"]
  • ChatTypeInfo["CHANNEL_NOTICE"]
  • ChatTypeInfo["CHANNEL_NOTICE_USER"]
  • ChatTypeInfo["AFK"]
  • ChatTypeInfo["DND"]
  • ChatTypeInfo["IGNORED"]
  • ChatTypeInfo["SKILL"]
  • ChatTypeInfo["LOOT"]
  • ChatTypeInfo["MONEY"]
  • ChatTypeInfo["OPENING"]
  • ChatTypeInfo["TRADESKILLS"]
  • ChatTypeInfo["PET_INFO"]
  • ChatTypeInfo["COMBAT_MISC_INFO"]
  • ChatTypeInfo["COMBAT_XP_GAIN"]
  • ChatTypeInfo["COMBAT_HONOR_GAIN"]
  • ChatTypeInfo["COMBAT_FACTION_CHANGE"]
  • ChatTypeInfo["BG_SYSTEM_NEUTRAL"]
  • ChatTypeInfo["BG_SYSTEM_ALLIANCE"]
  • ChatTypeInfo["BG_SYSTEM_HORDE"]
  • ChatTypeInfo["RAID_LEADER"]
  • ChatTypeInfo["RAID_WARNING"]
  • ChatTypeInfo["RAID_BOSS_WHISPER"]
  • ChatTypeInfo["RAID_BOSS_EMOTE"]
  • ChatTypeInfo["FILTERED"]
  • ChatTypeInfo["INSTANCE_CHAT"]
  • ChatTypeInfo["INSTANCE_CHAT_LEADER"]
  • ChatTypeInfo["RESTRICTED"]
  • ChatTypeInfo["CHANNEL1"]
  • ChatTypeInfo["CHANNEL2"]
  • ChatTypeInfo["CHANNEL3"]
  • ChatTypeInfo["CHANNEL4"]
  • ChatTypeInfo["CHANNEL5"]
  • ChatTypeInfo["CHANNEL6"]
  • ChatTypeInfo["CHANNEL7"]
  • ChatTypeInfo["CHANNEL8"]
  • ChatTypeInfo["CHANNEL9"]
  • ChatTypeInfo["CHANNEL10"]
  • ChatTypeInfo["ACHIEVEMENT"]
  • ChatTypeInfo["GUILD_ACHIEVEMENT"]

SYSTEM is the yellow messages shown by the system, such as the ones shown at login and server reboot warnings. CHANNEL is /1 through /10, also known as the zone, trade, and custom channels.

Attributes returned from this table are as follows:

  • r - red color
  • g - green color
  • b - blue color
  • id - assigned to same value as GetChatTypeIndex(type) within FrameXML\ChatFrame.lua
  • sticky - Whether the channel is "sticky". That is, whether you type into that channel again by default after sending a message, or whether it returns to the last sticky channel you typed into the next time you go to send a message. Default sticky channels are listed here.