API:GuildAddMemberButton OnClick

GuildAddMemberButton_OnClick

If a target is selected, the target will be invited into the guild.

Brings up the following popup if no target is selected

StaticPopup_Show("ADD_GUILDMEMBER");

"Enter the player's name who you wish to invite to the guild"

Example
/script GuildAddMemberButton_OnClick