WoW API < CanSummonFriend

Returns whether you can RaF summon a particular unit.

summonable = CanSummonFriend("unit")

Arguments[edit | edit source]

String (UnitId) - player to check whether you can summon.

Returns[edit | edit source]

Flag - 1 if you can summon the unit using RaF, nil otherwise.

Example[edit | edit source]

The snippet below checks whether you can summon the target, and, if so, whispers and summons her to you.

local t = "target"; 
if CanSummonFriend(t) then 
  SendChatMessage("I am summoning you!","WHISPER",nil,t) 
Community content is available under CC-BY-SA unless otherwise noted.