From 612cf9cf70f10589be71d770bb05f4522f579784 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 23 Feb 2023 16:07:15 +0000 Subject: [PATCH] Tell the user why they were banned --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 392ccef..62f34bc 100644 --- a/main.py +++ b/main.py @@ -79,7 +79,10 @@ async def check_not_banned(ctx: discord.ApplicationContext | commands.Context): else: reply = ctx.reply if isinstance(ctx, commands.Context) else ctx.respond try: - await reply(content=f":x: You can use commands {discord.utils.format_dt(dt, 'R')}") + await reply( + content=f":x: You can use commands {discord.utils.format_dt(dt, 'R')} (reason for ban:" + f" {ban.reason}).", + ) except discord.HTTPException: pass finally: