Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord.File(fp=image_binary,filename=name) discord py

image = Image.open("test.png")

with BytesIO() as image_binary:
    image.save(image_binary, "PNG")
    image_binary.seek(0)
    await ctx.send(file=discord.File(fp=image_binary,filename="image.png"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #py
ADD COMMENT
Topic
Name
5+2 =