I\'ve been desperately looking for answers but I can never find anything that helps! I\'ve been trying every bit of code I find that might work but either the command doesn\'t l
I know your problem is already solved, but I will post an answer so that people who have this same problem will be able to find the solution easily.
To send an image or GIF, here are two options (adapted from here):
Opening the file and sending it directly to the channel:
with open('my_image.png', 'rb') as f:
picture = discord.File(f)
await channel.send(channel, picture)
Passing the file name directly:
await channel.send(file=discord.File('my_image.png'))
Here are some useful links: