WoW:Sky (AddOn)
Jump to navigation
Jump to search
--[[
-- updateSlashCommand ( {slashCommandParts}, ... )
--
-- Updates a /command member if its valid.
--
-- e.g.
-- updateSlashCommand({id="myID";onExecute = fooFunc; } );
--
-- will change the onExecute function for myID.
--
-- arg members:
-- id - the ID matching the old slashCommand
-- member - onExecute | onSpace | onTab | commands | action | helpText
-- newvalue - the new value.
--
-- returns:
-- true - successfully replace.
-- false - validation failed
--]]