API:ChatEdit SendText

ChatEdit_SendText(ChatBox) can be used to execute 'slash commands' including emotes, when attempting to send plain text it will give a mysterious error.

The command used must be a valid slash command.

A ChatBox can be set up like: DummyChatBox = { ["text"] = "/WhatYouWantToExecute"} function DummyChatBox:GetText return DummyChatBox.text; end function DummyChatBox:AddHistoryLine end function DummyChatBox:SetText end function DummyChatBox:Hide end function DummyChatBox:SendChatMessage(msg, channel, arg3, arg4) end Then you can call it using "ChatEdit_SendText(DummyChatBox)".