aboutsummaryrefslogtreecommitdiff
path: root/docs/make.bat
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-22 18:05:38 -0400
committerRapptz <[email protected]>2016-07-22 18:05:38 -0400
commitcd0de57d13b15f709aaacf78ce611dd87e0784ce (patch)
tree57f94038c5e7e8edba393682c2e02fdd64512628 /docs/make.bat
parent[commands] Add UserInputError into the exception hierarchy. (diff)
downloaddiscord.py-cd0de57d13b15f709aaacf78ce611dd87e0784ce.tar.xz
discord.py-cd0de57d13b15f709aaacf78ce611dd87e0784ce.zip
[commands] Implement a command cooldown system.
The way the command cooldown works is using a windowed way of doing it. That is, if we have a cooldown of 2 commands every 30 seconds then if we do a single command, we have 30 seconds to do the second command or else we will get rate limited. This more or less matches the common expectations on how cooldowns should be. These cooldowns can be bucketed up to a single dimension of depth for a per-user, per-guild, or per-channel basis. Of course, a global bucket is also provided. These cannot be mixed, e.g. no per-channel per-user cooldowns. When a command cooldown is triggered, the error handlers will receive a an exception of type CommandOnCooldown with proper information regarding the cooldown such as retry_after and the bucket information itself.
Diffstat (limited to 'docs/make.bat')
0 files changed, 0 insertions, 0 deletions