get message by id discord.py code example
Example 1: discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
Example 2: discord py get user by id
user = bot.get_user(user_id)
Example 3: discord.py message user
if message.content == "dm":
await message.channel.send("Dming user")
dm = await message.author.create_dm() # Creates a dm channel with the user
await dm.send("What you want to send") # Sends the user the message