r,g,b = GetChatColor("channelname")
local r, g, b = Chat_GetChannelColor(ChatTypeInfo.CHANNEL1)
local function OnEvent(self, event) local info = ChatTypeInfo.OFFICER print(info.r, info.g, info.b)end local f = CreateFrame("Frame")f:RegisterEvent("PLAYER_ENTERING_WORLD")f:SetScript("OnEvent", OnEvent)
local function OnEvent(self, event, name, r, g, b) if name == "OFFICER" then print(event, name, r, g, b) endend local f = CreateFrame("Frame")f:RegisterEvent("UPDATE_CHAT_COLOR")f:SetScript("OnEvent", OnEvent)