@Bot.command (pass_context = True)
@commands.has_permissions( administrator = True)
async def mute (ctx,member:discord.Member,time:int,reason):
channel = client.get_channel (ид указано в коде)
mute = discord.utils.get(ctx.message.guild.roles, name = 'muted')
lol = discord.Embed(title = 'Информация' )
lol.add_field(name = 'Модератор', value = ctx.message.author.mention, inline = False)
lol.add_field(name = 'Нарушитель', value = member.mention, inline = False)
lol.add_field(name= 'Причина', value = reason, inline = False)
lol.add_field (name = 'Время', value = time, inline = False)
await member.add_roles (mute)
await channel.send (embed = lol )
await asyncio.sleep(time * 60)
await member.remove_roles (mute)
Вот мой код на мут.
Ошибка: