Back to index...

NameTypeDeprecatedSecureDescription
Command.Slash.RegisterfunctionRegisters a new chat slash command, inserts a new event handle into the Event.Slash hierarchy, an...

Command.Slash.Register

Registers a new chat slash command, inserts a new event handle into the Event.Slash hierarchy, and returns that handle. If called multiple times with the same slash command, will return the same handle each time.

Usage:

eventTable = Command.Slash.Register(slashCommand)
ParameterTypeDatatypeDescription
slashCommandparameterstringThe name of the slash command to register.
eventTableresulttableThe event table for your slash command. nil if the slash command could not be registered (usually because it conflicts with a built-in slash command.) Will return the same event table if used twice to register the same slash command.

Back to index...