@bot.command(pass_context=True)
@commands.has_role('Учитель')
async def mute(ctx, member: discord.Member):
if member == ctx.author:
await ctx.send('Вы не можете себя замутить')
@bot.command(pass_context=True)
AttributeError: 'Command' object has no attribute 'command'