Only trigger cooldown when message is parsed in [p]contact (#3942)

This commit is contained in:
Predeactor 2020-06-11 18:54:11 +02:00 committed by GitHub
parent f0a4c1c252
commit d411873503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1635,7 +1635,7 @@ class Core(commands.Cog, CoreLogic):
await ctx.bot._config.help.tagline.set(tagline)
await ctx.send(_("The tagline has been set."))
@commands.command()
@commands.command(cooldown_after_parsing=True)
@commands.cooldown(1, 60, commands.BucketType.user)
async def contact(self, ctx: commands.Context, *, message: str):
"""Sends a message to the owner"""