1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 01:26:36 +02:00

Added constants to the Python interface for calls to execute.

This commit is contained in:
jakob
2017-05-19 15:35:31 -04:00
parent 6d2b90ac9f
commit 5ed26eda9b
3 changed files with 18 additions and 3 deletions

View File

@ -52,7 +52,7 @@ Commands
========
.. function:: execute(command, class)
Execute the given command, where a class of 0 indicates a global command, 1 indicates a chat command, and 2 indicates a groupchat command.
Executes the given command. The API exports three constants for the class parameter; GLOBAL_COMMAND, CHAT_COMMAND, and GROUPCHAT_COMMAND.
:param command: The command to execute.
:type command: string