WoW:API GuildRosterSetPublicNote: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Removed the entire Details section - you can no longer insert UI escape sequences. Example section will be enough now :()
Line 17: Line 17:
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
  GuildRosterSetPublicNote(GetGuildRosterSelection(), "My Public Note")
  GuildRosterSetPublicNote(GetGuildRosterSelection(), "My Public Note")
== Details ==
<!-- Details not appropriate for the main description can go here.
    REMOVE the section if you're just going to restate the intro line! -->
color can be added to public notes, officer notes, guild info and guild MOTD using [[UI Escape Sequences]]
<pre>GuildRosterSetPublicNote(GetGuildRosterSelection(), "|cFFFF0000This Looks Red!")</pre>
or
<pre>/script GuildRosterSetPublicNote(GetGuildRosterSelection(), "\124cFFFF0000This Looks Red!")
</pre>
for in game text editing

Revision as of 01:30, 4 November 2009

WoW API < GuildRosterSetPublicNote

Sets the public note of a guild member.

GuildRosterSetPublicNote(index, "Text")


Arguments

(index, "Text")
index
The position a member is in the guild roster. This can be found by counting from the top down to the member or by selecting the member and using the GetGuildRosterSelection() function.
Text
Text to be set to the public note of the index.


Example

GuildRosterSetPublicNote(GetGuildRosterSelection(), "My Public Note")