Whisper target macro

what am i doing wrong in this simple macro?

 /run SendChatMessage("open trade if you want that","WHISPER",nil,GetUnitName(“target”,1));

edit : fixed a typo

Are you getting any errors?

Is this a cross-realm scenario and you need TargetName-TargetRealm?

Is this BfA or Classic?

yea swatter pops up when i click it but page is empty,yes need server names,this is bfa

you have smart quotes around "target"

/run SendChatMessage("open trade if you want that", "WHISPER", nil, GetUnitName("target", true));
3 Likes

tyvm,missed that,copied it from a webpage,much cheers !