ClubMessageInfo.content is seemingly not equal to the actual message sent in the Community.
I’m attempting to expand the “!keys” Weak Aura (rk9_bMltX on wago) to make it work in Community Chat as well.
Here’s my code followed by my comments of the output when I enter “!keys” in the Community chat. This is triggered by the “CLUB_MESSAGE_ADDED” event.
x = C_Club.GetMessageInfo(select(1, ...), select(2, ...), select(3, ...)).content
print(x) -- !keys
print(type(x)) -- string
print(string.len(x)) -- 8
I iterate over string to see why it’s 8 characters long instead of 5
for i = 1, string.len(x) do
print( string.sub(x, i, i))
end
Which outputs “|Ku948|k”. This value increments (i.e. “|Ku949|k”) every time I enter a unique message into chat. Is the message content actually just a unique identifier?
Are Community chat messages encoded differently making them unusable in Addons?
Does anyone have any experience with fetching Community messages?
Also I’m new to Weak Auras so please let me know if there are any blaring issues.