This repository was archived by the owner on Dec 24, 2021. It is now read-only.
Commit 6b9e4ee
authored
Allow override of Command.throttle (#372)
- Make `Command.throttle` protected instead of private, allowing children to safely override this handling when using typescript.
- Fix the return type of `Command.throttle` to acknowledge the null response where a command is not throttling.
Given throttling is a per-command behaviour, it would be handy to be able to provide custom throttling checks as needed.
I.e. throttling for all (incl. owners), global throttling instead of per-user, etc1 parent ac05805 commit 6b9e4ee
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments