Answer the question
In order to leave comments, you need to log in
How to fix "object has no attribute" error?
The code:
@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'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question