Answers for "send file discord py"

9

discord.py send image

await channel.send(file=discord.File('path/to/image.png'))
Posted by: Guest on July-03-2020
7

send image discord.py

await channel.send(file=discord.File('my_image.png'))
Posted by: Guest on June-14-2020
0

discord.py send messages

#plain text
await message.channel.send("content")

#with a embed
await message.channel.send("content", embed=embed_name)

#with a file/image
await message.channel.send("content", file="file/image path")
Posted by: Guest on August-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language