You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows developers to register their own slash commands
TRP3_API.slash.registerCommand(commandStructure)
Arguments
commandStructure: table:
id: string, the command itself, usable as /trp3 <id>
helpLine: string, what shows up when a user types /help <command>
handler: function
Example
Say hello world!
localfunctionhelloWorld()
print("Hello World!")
endlocalcommandStructure= {
id="helloWorld"helpLine="Say hello to the world!"handler=function()
helloWorld()
end
}
TRP3_API.slash.registerCommand(commandStructure)