Invoke: Difference between revisions
m (Xabi moved page NAPI.Command.Invoke to Command.Invoke) |
m (Xabi moved page Command.Invoke to Invoke) |
Latest revision as of 13:09, 27 November 2019
Invokes a command at run-time.
Syntax
void NAPI.Command.Invoke(Client sender, string command, params object[] args);
Required Arguments
- sender: parameter input should be in Client type.
- command: parameter input should be in string type.
- args: parameter input should be parameters.
Usage example(s)
void InvokedFromSomwhere(Client sender)
{
NAPI.Command.Invoke(sender, "somecmd", "str1", 2, true);
}