WoWInterface - View Single Post - Sticky chat
Thread: Sticky chat
View Single Post
08-22-21, 10:28 PM   #1
A Flamescale Wyrmkin
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 144
Sticky chat

Hi all

I want to be able to send a chat message and have the channel that the message was sent to become the current channel.

Currently, I can send a string to guild chat and then join the guild channel;
Lua Code:
  1. SendChatMessage("Guild Message", "GUILD")
  2. ChatEdit_ChooseBoxForSend():SetAttribute("chatType", "GUILD") -- set sticky channel

I want to do the same for General, or Trade chat, but so far had no success.

I have dug through the ChatFrame.lua file and still have no idea of how to get this working.

I would really appreciate some direction here.

"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
  Reply With Quote