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

0

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"))
Posted by: Guest on April-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language