I just recently started to make addons. i really like it. so i decided to make an addon for my boomkin. i want to map a button to do a custom emote (/e clucks.) but i cant seem to get this to work. been looking on various forums for about 3 hours now and cant get anything on this. also on kinda the same note how would i map a button to say something in a specific chat (i.e Guild chat) i tried
function Cluck_Button_OnClick()
DEFAULT_CHAT_FRAME:AddMessage("/gu cluck.")
end
but i had no success. it just says /gu cluck.
kinda at a loss for both these situations and any help would be awesome. ty in advance