I'm going to send someone a message from a bot, The following code snippet is what I wrote to do that when I type $sendpm
it will ask for an id
and then for a message to send.
if message.content == "$sendpm":
await message.channel.send("What is the users ID?")
userid = await bot.wait_for('message')
print(userid.content)
user = bot.get_user_info(userid.content)
await message.channel.send("What would you like to send them?")
pm = await bot.wait_for("message")
await user.send(user, pm.content)
when I do this I get this error:
AttributeError: 'Bot' object has no attribute 'get_user_info'