JoinChannelByName enigma
UDPATE: Nevermind, I'm an idiot... it seems SendChatMessage can only be triggered by a hardware event, not by an addon, thus the error. I'll have to find another way for my addon to talk to other versions of it out there...
--------------- I'm trying to join a channel programmatically through an addon using the following logic: Code:
JoinChannelByName("mychannel", nil, ChatFrame1:GetID(), false) Code:
local id = GetChannelName("mychannel") Code:
Interface action failed because of an AddOn I'm confused... how can SendChatMessage raise a taint? What am I missing? |
If you want your addon to talk to itself on another player, you should probably be using the addon hidden chat message system, and not a custom chat channel
https://wow.gamepedia.com/API_C_Chat...ndAddonMessage |
Patch 8.2.5 (as well as Classic patch 1.13.3) has partically protected SendChatMessage if you're trying to send to SAY, YELL, or CHANNEL. Those three message destinations require a hardware event in order for addons to use them, such as a key or a click. However, you can freely send to SAY or YELL while in an instance.
|
I switched to SendAddonMessage() but noticed that it seems to work fine in a party, i.e
Code:
C_ChatInfo.SendAddonMessage(prefix, "test") Code:
C_ChatInfo.SendAddonMessage(prefix, "test", "CHANNEL", channelid) Code:
JoinChannelByName(channelname) Is SendAddonMessage somehow limited, too for "CHANNEL" or am I doing something completely wrong? |
All times are GMT -6. The time now is 02:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI