Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/docs/reference/custom-commands-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Various limits in YAGPDB custom commands (CC) for smooth functioning of the bot
- **Calls per CC:** 1/10 (free/prem) -> counter key "runcc"
- **StackDepth limit:** 2 (executing with 0 delay)
- **Delay limit:** int64 limit (292 years)
- **Channel limit:** 10 executions per channel, per minute

### scheduleUniqueCC

Expand Down
2 changes: 2 additions & 0 deletions content/docs/reference/templates/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ Executes another custom command specified by `ccID`.
- `data`: some arbitrary data to pass to the executed custom command.

Calling `execCC` with 0 delay sets `.StackDepth` to the current recursion depth and limits it to 2.
`execCC` is rate-limited strictly to a maximum of 10 delayed custom commands executed per channel per minute. Executions
beyond this number will be dropped.

##### Example

Expand Down