@client.command()
@commands.has_permissions(administrator=True)
async def moder(ctx, member: discord.Member):
await ctx.channel.purge(limit = 1)
moder_role = discord.utils.get(ctx.message.guild.roles, name = "moderator")
await member.add_roles(moder_role)
await ctx.send(f'пользователь {member.mention} стал новым модератором сервера')