aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Daniel Nash <[email protected]>2020-06-10 17:35:44 -0500
committerGravatar GitHub <[email protected]>2020-06-10 17:35:44 -0500
commitb1b1765596469b76d6321e81732a54e46d3b5865 (patch)
tree4ba0021cb3dabb8316749ccd451a3f6632912ef8
parentchange _cd to message_cooldown (diff)
Update bot/resources/tags/customcooldown.md
Co-authored-by: Joseph Banks <[email protected]>
-rw-r--r--bot/resources/tags/customcooldown.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/resources/tags/customcooldown.md b/bot/resources/tags/customcooldown.md
index f304de246..f7987556d 100644
--- a/bot/resources/tags/customcooldown.md
+++ b/bot/resources/tags/customcooldown.md
@@ -14,9 +14,7 @@ async def on_message(message):
if retry_after:
await message.channel.send("Slow down! You're sending messages too fast")
else:
- # you're not rate limited
- pass
- # more code here
+ await message.channel.send("Not ratelimited!")
```
`from_cooldown` takes the amount of `update_rate_limit()`s needed to trigger the cooldown, the time in which the cooldown is triggered, and a [`BucketType`](discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.discord.ext.commands.BucketType).