undo delete message when ban
This commit is contained in:
parent
f79074a97d
commit
db7dfd5c58
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Admin(commands.Cog):
|
||||||
user = get_user(ctx.message, user)
|
user = get_user(ctx.message, user)
|
||||||
if user and str(user.id) not in self.bot.config.unkickable_id:
|
if user and str(user.id) not in self.bot.config.unkickable_id:
|
||||||
try:
|
try:
|
||||||
await user.ban(reason=reason)
|
await user.ban(reason=reason, delete_message_days=0)
|
||||||
return_msg = f"`{user.mention}` a été banni\n"
|
return_msg = f"`{user.mention}` a été banni\n"
|
||||||
if reason:
|
if reason:
|
||||||
return_msg += f"raison : `{reason}`"
|
return_msg += f"raison : `{reason}`"
|
||||||
|
|
Loading…
Reference in a new issue