diff options
author | 2021-10-13 17:49:51 +0100 | |
---|---|---|
committer | 2021-11-30 11:40:44 +0000 | |
commit | 1d7765c5629efaccdd4741b8fd6640f7fd6dab09 (patch) | |
tree | 4861cf50e8cda71348e6460b09804f24b07748e9 | |
parent | Ensure the user interacting is still in guild before changing roles (diff) |
Add 10s member cooldown to subscribe command
-rw-r--r-- | bot/exts/info/subscribe.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/info/subscribe.py b/bot/exts/info/subscribe.py index bf3120a3a..121fa3685 100644 --- a/bot/exts/info/subscribe.py +++ b/bot/exts/info/subscribe.py @@ -115,6 +115,7 @@ class Subscribe(commands.Cog): continue self.assignable_roles.append(role) + @commands.cooldown(1, 10, commands.BucketType.member) @commands.command(name="subscribe") @in_whitelist(channels=(constants.Channels.bot_commands,)) async def subscribe_command(self, ctx: commands.Context, *_) -> None: # We don't actually care about the args |