WoW:API GuildRosterSetPublicNote: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GuildRosterSetPublicNote to API GuildRosterSetPublicNote without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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

Latest revision as of 04:46, 15 August 2023

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")