if message = file discord.py code example Example: discord.py send image await channel.send(file=discord.File('path/to/image.png'))