Wikia

WoWWiki

API GuildControlGetRankFlags

Talk0
101,697pages on
this wiki
WoW API < GuildControlGetRankFlags

Returns information about the current selected guild rank. If no rank has been selected and the guild frame hasn't been opened the function will return nil for all flags.

guildchat_listen, guildchat_speak, officerchat_listen, officerchat_speak, promote, demote,
invite_member, remove_member, set_motd, edit_public_note, view_officer_note, edit_officer_note,
modify_guild_info, _, withdraw_repair, withdraw_gold, create_guild_event = GuildControlGetRankFlags();

ParametersEdit

ReturnsEdit

guildchat_listen 
Boolean - 1 if players of the rank can listen to guild chat, nil otherwise.
guildchat_speak 
Boolean - 1 if players of the rank can speak in guild chat, nil otherwise.
officerchat_listen 
Boolean - 1 if players of the rank can listen to officer chat, nil otherwise.
officerchat_speak 
Boolean - 1 if players of the rank can speak in officer chat, nil otherwise.
promote 
Boolean - 1 if players of the rank promote lower ranked players, nil otherwise.
demote 
Boolean - 1 if players of the rank demote lower ranked players, nil otherwise.
invite_member
Boolean - 1 if players of the rank invite new players to the guild, nil otherwise.
remove_member
Boolean - 1 if players of the rank remove players from the guild, nil otherwise.
set_motd
Boolean - 1 if players of the rank can edit guild message of the day, nil otherwise.
edit_public_note
Boolean - 1 if players of the rank can edit public notes, nil otherwise.
view_officer_note
Boolean - 1 if players of the rank can view officer notes, nil otherwise.
edit_officer_note
Boolean - 1 if players of the rank can edit officer notes, nil otherwise.
modify_guild_info
Boolean - 1 if players of the rank modify guild information, nil otherwise.
withdraw_repair
Boolean - 1 if players of the rank are allowed to repair using guild bank, nil otherwise.
withdraw_gold
Boolean - 1 if players of the rank are allowed to withdraw gold from the guild bank, nil otherwise.
create_guild_event
Boolean - 1 if players of the rank can create guild events on the calendar, nil otherwise.

ExampleEdit

local _,_,playerrank = GetGuildInfo("player");
GuildControlSetRank(playerrank + 1);
local guildchat_listen,guildchat_speak,officerchat_listen,officerchat_speak,... = GuildControlGetRankFlags();

Around Wikia's network

Random Wiki