I'm trying to make this Discord bot in python that when you give the command sends a private message to two people and try to get the message that is sent after
@client.command()
async def dm(ctx, member_1:discord.Member, member_2:discord.Member):
await member_1.send(f'sup member 1 type something')
await member_2.send(f'sup member 2 type something')
def check(m):
return m.author == ctx.author
msg1 = await client.wait_for('message', check=check)
def check_2(m):
return m.member_2 == discord.Member
msg2 = await client.wait_for('message', check=check_2)
print(msg1.content)
print(msg2.content)
my problem is that when the second member sends the message it gives me a error 'Message' object has no attribute 'member_2'
if I delete the second member it works fine and gets my input and prints out what I typed but with the second member types something and it prints nothing, when the second member sends his message the error shows up
what should i put in the second check to work?