fds
This commit is contained in:
parent
311bd853da
commit
2c96266315
5 changed files with 32 additions and 6 deletions
|
@ -1157,11 +1157,11 @@ def ban_user(user_id, v):
|
|||
x.ban(admin=v, reason=passed_reason, days=days)
|
||||
|
||||
if days:
|
||||
if reason: text = f"Your account has been banned for **{days}** days for the following reason:\n\n> {reason}"
|
||||
else: text = f"Your account has been banned for **{days}** days."
|
||||
if reason: text = f"@{v.username} has banned you for **{days}** days for the following reason:\n\n> {reason}"
|
||||
else: text = f"@{v.username} has banned you for **{days}** days."
|
||||
else:
|
||||
if reason: text = f"Your account has been permanently banned for the following reason:\n\n> {reason}"
|
||||
else: text = "Your account has been permanently banned."
|
||||
if reason: text = f"@{v.username} has banned you permanently for the following reason:\n\n> {reason}"
|
||||
else: text = f"@{v.username} has banned you permanently."
|
||||
|
||||
send_repeatable_notification(user.id, text)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue