register_command: add since 1.15 for async support

This commit is contained in:
Starbeamrainbowlabs 2024-10-17 03:11:46 +01:00
parent bed5ec3add
commit 5331b32159
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -28,7 +28,7 @@ end
-- - `description` (string) A description of the command.
-- - `privs` (`{someprivilege=true, ....}`) The privileges required to use the command.
-- - `require_pos` (number) The number of positions required for the command.
-- - `async=false` (bool) Whether this function is async. See the note in the description of this function for more information.
-- - `async=false` (bool) Whether this function is async. See the note in the description of this function for more information. *(since v1.15)*
-- - `parse` (function) A function that parses the raw param_text into proper input arguments to be passed to `nodes_needed` and `func`.
-- - `nodes_needed` (function) A function that returns the number of nodes the command could potential change given the parsed input arguments.
-- - `func` (function) The function to execute when the command is run.