senses:types:command-context
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
senses:types:command-context [2025/07/28 01:10] – created flash | senses:types:command-context [2025/07/28 03:25] (current) – single word for aesthetics flash | ||
---|---|---|---|
Line 7: | Line 7: | ||
The args field contains a sequential table with the arguments specified, including the unprefixed name of the command that invoked the command and any blank entries are skipped. | The args field contains a sequential table with the arguments specified, including the unprefixed name of the command that invoked the command and any blank entries are skipped. | ||
- | For example, '' | + | For example, '' |
===== msg ===== | ===== msg ===== | ||
Line 19: | Line 19: | ||
==== Syntax ==== | ==== Syntax ==== | ||
- | send(message: string): () | + | send(text: string): () |
- | The function takes a single | + | ==== Arguments ==== |
+ | |||
+ | - The first argument should be a non-empty string | ||
+ | |||
+ | ==== Returns ==== | ||
+ | |||
+ | //This function has no return values.// | ||
===== respond ===== | ===== respond ===== | ||
Line 29: | Line 35: | ||
==== Syntax ==== | ==== Syntax ==== | ||
- | respond(message: string): () | + | respond(text: string): () |
+ | |||
+ | ==== Arguments ==== | ||
+ | |||
+ | - The first argument should be a non-empty string that will be used as the body of a chat message sent by the bot, if an empty string is provided the function will not error but the invoke will be discarded. | ||
+ | |||
+ | ==== Returns ==== | ||
+ | |||
+ | //This function has no return values.// | ||
- | The function takes a single argument that should be a non-empty string, if an empty string is provided the function will not error but the invoke will be discarded. No return values are given. |
senses/types/command-context.1753665057.txt.gz · Last modified: by flash