Gaming
 

SkySlashCommand

From WoWWiki

This article is a part of the documentation of the Sky function library

	 {
	 	id = Identifier;
	 	commands = { "/command1", "/command2" };
		onExecute = SomeFunction;
	 	onSpace = SomeSpaceFunction;
	 	onTab = SomeOtherFunction;
	 	sticky = true | false;
		helpText = "This does something cool."
	}

Keys

  • ID - some unique ID (mostly for unregistering later)
  • slashCommands - a table of /commands to check for
  • onExecute - a function which is called when the user runs the command

Semi-Optional:

  • helpText - a string explaining what the command does

Optional:

  • onSpace - a function called when a spacebar is pressed
  • onTab - a function call when a tab key is pressed
  • sticky - true if a command is remembered between sends