Skip to content

Commit 7cab6c6

Browse files
authored
Merge branch 'development' into users/lorenzo132/slashcommands-intent-requirement
2 parents 538b4bc + d5fa99b commit 7cab6c6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

cogs/modmail.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,6 +2293,17 @@ async def selfcontact(self, ctx):
22932293
await ctx.send(embed=embed, delete_after=10)
22942294
return
22952295

2296+
delta = await self.bot.get_thread_cooldown(ctx.message.author)
2297+
if delta:
2298+
await ctx.send(
2299+
embed=discord.Embed(
2300+
title=self.bot.config["cooldown_thread_title"],
2301+
description=self.bot.config["cooldown_thread_response"].format(delta=delta),
2302+
color=self.bot.error_color,
2303+
)
2304+
)
2305+
return
2306+
22962307
await ctx.invoke(self.contact, users=[ctx.author])
22972308

22982309
@commands.command(usage="<user> [category] [options]")

0 commit comments

Comments
 (0)