@bot.command()
@commands.has_permissions(administrator = True)
async def command(ctx):
pass
@command.error
async def error(ctx, error):
if isinstance(error, commands.MissingPermissions):
await ctx.reply(embed = discord.Embed(
title = "Error",
description = f"У вас нехватает прав!",
timestamp = ctx.message.created_at,
color = discord.Colour.from_rgb(255, 0, 0)
))