bot doesn’t want to add roles

Its Member.add_roles() not Bot.add_roles()

Below is the revised code:

async def поздравить(ctx, *, text=None):
    role = discord.utils.find(lambda r: == 774543492806475816, ctx.message.guild.roles)
    if role in
        already=discord.Embed(title=':clipboard:!поздравить:clipboard:', colour =, description=f'**:x:{}, вы уже поздравляли Shadow:3**')
        await ctx.send(embed=already)
        await ctx.message.delete()
        success1=discord.Embed(title=':green_book:Спасибо за поздравление!:green_book:', description=f':white_check_mark:**{}, спасибо за поздравление! Оно отправлено Shadow и вы получаете {role.mention}!**\n\n***:milky_way:Текст поздравления:*** {text}',
        await ctx.send(embed=success1)
        await user.add_roles(role)
        await ctx.message.delete()

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top