Как добиться того, чтобы бот отправил пм из списка участников нажавших на кнопку?

Вот не понимаю я как достичь этого, я только учусь - не судите строго)) использую Discord Components

@bot.command()
async def test(ctx, *, text):
    embed = discord.Embed(title=f'Рейд "1"',
                          description=f'<@&897834197501222944>\n\n{ctx.author.mention} Собирает группу. \n\n {text} ',
                          color=discord.Color.red())
    embed.set_author(name=ctx.author.display_name,
                     icon_url=ctx.author.avatar_url)
    embed.set_thumbnail(url="ur1")
    embed.set_image(url='ur2')
    await ctx.message.delete()
    msg = await ctx.send(embed=embed, components=[[Button(style=ButtonStyle.green, label="Я пойду ? ", custom_id="thinktest"),
                                                   Button(style=ButtonStyle.gray, label='ПМ', emoji='?', custom_id="pmtest")]])
    memberstest = []

    while True:
        interaction = await bot.wait_for('button_click')
        if interaction.component.custom_id == 'thinktest':
            if msg.id == interaction.message.id:
                memb = interaction.user
                memberstest.append(memb.mention)

                a2 = f'\n'.join(memberstest)
                embeded = discord.Embed(title=f'Рейд "1"',
                                  description=f'<@&897834197501222944>\n\n{ctx.author.display_name} Собирает группу. \n\n {text} ',
                                  color=discord.Color.red())
                embeded.set_author(name=ctx.author.display_name, icon_url=ctx.author.avatar_url)
                embeded.set_thumbnail(url="ur1")
                embeded.set_image(url='ur2')
                embeded.add_field(name=f'✔', value=f'{a2}', inline=True)
                await msg.edit(embed=embeded)
                await interaction.respond(type=6)

        if interaction.component.custom_id == 'pmtest':
            if msg.id == interaction.message.id:
                if interaction.user == ctx.author:
# И тут  у меня проблемы
                    for member in memberstest:
                    await member.send('Скоро начнем!', embed=embeded)

ошибка

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'str' object has no attribute 'send'


Ответы (0 шт):