WoW:USERAPI SlashCmdList AddSlashCommand (source)
Revision as of 04:49, 15 August 2023
, 15 August 2023Move 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}} | {{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> | ||