@client.command()
@commands.has_permissions(ban_members = True)
async def ban(ctx, member : discord.Member, *, reason = 'На вас наложили печать бана'):
#kickm = command['ban']
dt = datetime.datetime.today()
time = dt.strftime('%H:%M - %m.%d.%Y')
embed = discord.Embed(
title=f"Здраствуйте!",
description=f"",
color=discord.Colour.random())
embed.add_field(name=f' ', value=f'Здраствуйте!\n\n> Вы были {kickm} на сервере **ServRU**\n\n> По причине: **{reason}**\n\n> Ник администратора: **{ctx.author.mention}**\n\n> Дата бана: **{time}**')
embedsend = discord.Embed(title=f'',description=f'Админестратор: {ctx.author.mention}\n\nПричина: {reason}\n\nКикнул {userName.mention}\n\nДата кика: **{time}**')
embedsend.add_field(name=f'Здраствуйте',value=f'')
owner = client.get_user(setting['owner'])
embedadmin = discord.Embed(
title=f'Здраствуйте',
description=f'\n> **Вы {kickm} нарушителя с ServRU**\n\n> **По причине:** {reason}\n\n> **Ник нарушителя:** {member.mention}\n\n> **Дата: ** {time}')
admin = client.get_user(ctx.author.id)
await admin.send(embed=embedadmin)
await owner.send(embed=embedsend)
await userName.send(embed=embed)
await member.ban(reason = reason)
@client.command()
@commands.has_permissions(ban_members = True)
async def ban(ctx, member : discord.Member, *, reason = None):
await member.ban(reason = reason)