From c2cafdd97e0d5aae77a90d44bc43793d57b88e84 Mon Sep 17 00:00:00 2001 From: gsd Date: Wed, 3 Jun 2026 21:54:07 +0300 Subject: [PATCH] embed fix 2 --- user_ext/profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_ext/profile.py b/user_ext/profile.py index 2d16522..7bc6065 100644 --- a/user_ext/profile.py +++ b/user_ext/profile.py @@ -1,6 +1,7 @@ import discord import traceback import time +import io class Extension: core = None @@ -31,7 +32,8 @@ class Extension: try: chartImage = await player.getGametimeViaImage() filename = f"{player.steam64}.{int(time.time())}.png" - file = discord.File(chartImage, filename=filename) + print(f"Size of image: {len(chartImage)} bytes") + file = discord.File(io.BytesIO(chartImage), filename=filename) except: traceback.print_exc() pass