You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`cancelScheduledUniqueCC` ccID key | Cancels a previously scheduled custom command execution using `scheduleUniqueCC`. |
342
-
|`execCC` ccID channel delay data | Function that executes another custom command specified by `ccID`. With delay 0 the max recursion depth is 2 (using `.StackDepth` shows the current depth). `execCC` is rate-limited strictly at max 10 delayed custom commands executed per channel per minute, if you go over that it will be simply thrown away. Argument `channel` can be `nil`, channel's ID or name. The`delay` argument is execution delay of another CC is in seconds. The `data` argument is content that you pass to the other executed custom command. To retrieve that `data` you use `.ExecData`. This example is important > [execCC example](/docs/reference/custom-command-examples#countdown-example-exec-cc) also next snippet which shows you same thing run using the same custom command > [Snippets](#execcc-sections-snippets). `execCC` is also thoroughly covered in this [GitHub gist](https://gist.github.com/l-zeuch/9f10d128184509ad531778f26550ed6d). |
343
-
|`scheduleUniqueCC` ccID channel delay key data | Same as `execCC`except there can only be 1 scheduled cc execution per server per key (unique name for the scheduler), if key already exists then it is overwritten with the new data and delay (as above, in seconds).An example would be a mute command that schedules the unmute action sometime in the future. However, let's say you use the unmute command again on the same user, you would want to override the last scheduled unmute to the new one. This can be used for that. |
341
+
### cancelScheduledUniqueCC
344
342
345
-
### ExecCC section's snippets
343
+
```yag
344
+
{{ cancelScheduledUniqueCC <ccID> <key> }}
345
+
```
346
346
347
-
- To demonstrate execCC and .ExecData using the same CC.
347
+
Cancels a previously scheduled custom command execution using [scheduleUniqueCC](#scheduleuniquecc).
348
+
349
+
### execCC
350
+
351
+
```yag
352
+
{{ execCC <ccID> <channel> <delay> <data> }}
353
+
```
354
+
355
+
Executes another custom command specified by `ccID`.
356
+
357
+
-`ccID`: the ID of the custom command to execute.
358
+
-`channel`: the channel to execute the custom command in. May be `nil`, a channel ID, or a channel name.
359
+
-`delay`: the delay in seconds before executing the custom command.
360
+
-`data`: some arbitrary data to pass to the executed custom command.
361
+
362
+
#### Example
363
+
364
+
The following example showcases a custom command executing itself.
0 commit comments