Thread: Sticky chat
View Single Post
08-22-21, 10:28 PM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
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.

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