Create a .md file in /tags with the following content inside:
f = discord.File("some_file_path", filename="image.png")
e = discord.Embed()
e.set_image(url="attachment://image.png")
await messagable.send(file=f, embed=e)
# Note that the filename in the File constructor and the filename in the URL must match.
Docs: https://discordpy.readthedocs.io/en/latest/faq.html#how-do-i-use-a-local-image-file-for-an-embed-image
This question is frequently asked in the discord.py channel, so having a tag would make a lot of sense, and save a lot of time.
Create a .md file in /tags with the following content inside:
Docs: https://discordpy.readthedocs.io/en/latest/faq.html#how-do-i-use-a-local-image-file-for-an-embed-image
This question is frequently asked in the discord.py channel, so having a tag would make a lot of sense, and save a lot of time.