discord py send dm code example
Example 1: discord.py send image
await channel.send(file=discord.File('path/to/image.png'))
Example 2: send message discord.py
await message.channel.send("Your message")
await channel.send(file=discord.File('path/to/image.png'))
await message.channel.send("Your message")