@bot.command()
@commands.has_permissions(manage_messages = True)
async def warn(ctx, member: discord.Member, *, reason = None):
await ctx.message.delete()
await ctx.send(f'<a:warn:985310794533179393> {member.mention} Был предупреждён.')
guild = ctx.guild
emb = discord.Embed(description = f'**Участник:** {member.mention}\n**ID участника:** ``{member.id}``\n**Действие:** ``Warn``\n**Причина:** ``{reason}``', colour = discord.Colour.gold())
emb.set_author(name = ctx.author.name, icon_url = ctx.author.avatar_url)
await ctx.send(embed = emb)