From a3551dd02bef617a3b297ee77e3b944b65c19454 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 26 Jun 2021 20:33:30 -0600 Subject: [PATCH] Add filename to file --- jarvis/cogs/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/cogs/image.py b/jarvis/cogs/image.py index 6247323..5f633e8 100644 --- a/jarvis/cogs/image.py +++ b/jarvis/cogs/image.py @@ -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):