senses:types:command-context
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| senses:types:command-context [2025/07/28 01:57] – Updated function syntax format 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 21: | Line 21: | ||
| send(text: string): () | send(text: string): () | ||
| - | === Arguments === | + | ==== 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. | - 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. | ||
| - | === Return values | + | ==== Returns ==== |
| //This function has no return values.// | //This function has no return values.// | ||
| Line 37: | Line 37: | ||
| respond(text: | respond(text: | ||
| - | === Arguments === | + | ==== 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. | - 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. | ||
| - | === Return values | + | ==== Returns ==== |
| //This function has no return values.// | //This function has no return values.// | ||
senses/types/command-context.1753667822.txt.gz · Last modified: by flash
