mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Tell the user why they were banned
This commit is contained in:
parent
09991dcefd
commit
612cf9cf70
1 changed files with 4 additions and 1 deletions
5
main.py
5
main.py
|
@ -79,7 +79,10 @@ async def check_not_banned(ctx: discord.ApplicationContext | commands.Context):
|
||||||
else:
|
else:
|
||||||
reply = ctx.reply if isinstance(ctx, commands.Context) else ctx.respond
|
reply = ctx.reply if isinstance(ctx, commands.Context) else ctx.respond
|
||||||
try:
|
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:
|
except discord.HTTPException:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue