WoW:USERAPI SlashCmdList AddSlashCommand: Difference between revisions

m
Move page script moved page USERAPI SlashCmdList AddSlashCommand to WoW:USERAPI SlashCmdList AddSlashCommand without leaving a redirect
m (Fixed 2 spelling errors.)
m (Move page script moved page USERAPI SlashCmdList AddSlashCommand to WoW:USERAPI SlashCmdList AddSlashCommand without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{userfunc}} <!-- Leave this line in! -->
{{userfunc}}
 
Add slash commands.
Add slash commands.
  SlashCmdList_AddSlashCommand(name, func, ...)
  SlashCmdList_AddSlashCommand(name, func, ...)
Line 24: Line 23:
  SLASH_MYADDON_SLASHCMD2 = '/ma'
  SLASH_MYADDON_SLASHCMD2 = '/ma'


==Code==
== Code ==
<pre>function SlashCmdList_AddSlashCommand(name, func, ...)
<pre>function SlashCmdList_AddSlashCommand(name, func, ...)
     SlashCmdList[name] = func
     SlashCmdList[name] = func
Line 36: Line 35:
     end
     end
end</pre>
end</pre>
__NOTOC__
Anonymous user