@bot.command()
@commands.has_permissions(administrator = True)
async def dayn(ctx):
await ctx.send(' текст')
@dayn.error
async def dayn_error(ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send('У вас недостаточно прав)
MissingRequiredArgument
на MissingPermissions