LUA Coders: How to get people in a chat channel
1 year, 1 month ago
Hi Casuality
I haven't found out how to do what you suggest but I have found another solution:
Before querying the channel list:
GLDG_Main:RegisterEvent("CHAT_MSG_CHANNEL_LIST")
DEFAULT_CHAT_FRAME:UnregisterEvent("CHAT_MSG_CHANNEL_LIST")
ListChannelByName(GLDG_ChannelName)
and then in OnEvent()
if (event == "CHAT_MSG_CHANNEL_LIST") then
DEFAULT_CHAT_FRAME:RegisterEvent("CHAT_MSG_CHANNEL_LIST")
GLDG_Main:UnregisterEvent("CHAT_MSG_CHANNEL_LIST")
GLDG_TreatList()
end
Thanks for your input, anyway.
Cheers Urbin
Quick Reply
You need to login or register to post comments.
Benefits of Registration
- Interact with hundreds of thousands of other gamers on an open social network.
- Post your stories, news, images, videos, and other content to share.
- Create a network with your fellow gamers or join an existing one.
- Gain reputation for everything you do.

- Thumbs Down
- Thumbs Up
- +0
UrbinHi fellow coders out there
What I am trying to do: If I do "/join MyOwnChannel" I can then do "/chatlist MyOwnChannel" and get a list of people who have joined this channel.
Now, if I want to find out in an addon which people are in that channel it seems I can do
ListChannelByName("MyOwnChannel")which will result in an CHAT_MSG_CHANNEL_LIST event with the following data
which is basically what I am looking for. Unfortunately, this also prints the following line to the chat
Of course, I'd rather not spam the chat with this message everytime I parse the people in the channel. Is there a way to either get this information in a different way (preferred) or a way to turn off the line going to the chat temporarily (acceptable as a work-around).
Thanks for your help Cheers Urbin