Add channel category cooldown bucket type

This commit is contained in:
Dice
2018-11-04 01:51:03 -04:00
committed by Rapptz
parent 53c7d940c9
commit 5a585ebf20
2 changed files with 9 additions and 5 deletions

View File

@@ -1404,6 +1404,7 @@ def cooldown(rate, per, type=BucketType.default):
- ``BucketType.guild`` for a per-guild basis.
- ``BucketType.channel`` for a per-channel basis.
- ``BucketType.member`` for a per-member basis.
- ``BucketType.category`` for a per-category basis.
If a cooldown is triggered, then :exc:`.CommandOnCooldown` is triggered in
:func:`.on_command_error` and the local error handler.