diff options
| author | 2020-06-10 17:35:44 -0500 | |
|---|---|---|
| committer | 2020-06-10 17:35:44 -0500 | |
| commit | b1b1765596469b76d6321e81732a54e46d3b5865 (patch) | |
| tree | 4ba0021cb3dabb8316749ccd451a3f6632912ef8 | |
| parent | change _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.md | 4 |
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). |