new_slashhandler
slash commands

Example
bot.new_slashhandler({
Command = "test",
Callback = function(data)
local options = data.options
-- options is structed like this:
-- The name registered option (in this case the option is message)
-- The the value
if options["message"] == "test" then
send_message(data.channel_id, "Test message")
end
end
})
Last updated