Seems that GetGuildRecruitmentLink will only work for your joined guilds, right. Have tested this too.
I have not found anything that will provide you links of others guilds, but I doubt it exists as API.
You can just use something like a pattern and create the links yourself:
Lua Code:
locla function myBuildGuildRecruitmentLink(guildId)
if guildId == nil then return end
return string.format("|H1:guild:%s|h%s|h", tostring(guildId), tostring(GetGuildName(guildId)))
end
But GetGuildName does not show me the guild names allthough the id exists, and I can even see the ID within the guild search...
Using /tb GetGuildName(132553) ingame returns an empty string (using merTorchbug).
Something is weird indeed.