Add filename to file
This commit is contained in:
parent
aaab30fb8f
commit
a3551dd02b
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class ImageCog(commands.Cog):
|
|||
new_img = cv2.resize(img, (width, height))
|
||||
buffer = cv2.imencode(".png", new_img)[1].tobytes()
|
||||
bufio = BytesIO(buffer)
|
||||
await ctx.send(file=File(bufio))
|
||||
await ctx.send(file=File(bufio, filename="resized.png"))
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
|
Loading…
Add table
Reference in a new issue