aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Nash <[email protected]>2020-06-12 08:48:16 -0500
committerGravatar GitHub <[email protected]>2020-06-12 08:48:16 -0500
commit844726f7bedc8c1d772c5f866a29a52cda6f3a9f (patch)
tree4585ba401adef9018acbd171522adae46ad2e8c8
parentMake title more specific (diff)
Update customcooldown.md
-rw-r--r--bot/resources/tags/customcooldown.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/resources/tags/customcooldown.md b/bot/resources/tags/customcooldown.md
index 4060a9827..3f6db0ec6 100644
--- a/bot/resources/tags/customcooldown.md
+++ b/bot/resources/tags/customcooldown.md
@@ -10,6 +10,8 @@ message_cooldown = commands.CooldownMapping.from_cooldown(1.0, 60.0, commands.Bu
@bot.event
async def on_message(message):
bucket = message_cooldown.get_bucket(message)
+ # update_rate_limit returns a time you need to wait before
+ # trying again
retry_after = bucket.update_rate_limit()
if retry_after:
await message.channel.send("Slow down! You're sending messages too fast")