There was an error while loading. Please reload this page.
2 parents 4cc0de3 + d5fa99b commit dd09db8Copy full SHA for dd09db8
1 file changed
cogs/modmail.py
@@ -2521,6 +2521,17 @@ async def selfcontact(self, ctx):
2521
await ctx.send(embed=embed, delete_after=10)
2522
return
2523
2524
+ delta = await self.bot.get_thread_cooldown(ctx.message.author)
2525
+ if delta:
2526
+ await ctx.send(
2527
+ embed=discord.Embed(
2528
+ title=self.bot.config["cooldown_thread_title"],
2529
+ description=self.bot.config["cooldown_thread_response"].format(delta=delta),
2530
+ color=self.bot.error_color,
2531
+ )
2532
2533
+ return
2534
+
2535
await ctx.invoke(self.contact, users=[ctx.author])
2536
2537
@commands.command(usage="<user> [category] [options]")
0 commit comments