From 14c068c206f7ff1b848fbc6cecef1738d8c6da45 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 28 Dec 2023 10:07:02 -0500 Subject: [PATCH] fix(art): use a File object instead of Attachment --- art/art.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/art/art.py b/art/art.py index b3477f1..7adde1c 100644 --- a/art/art.py +++ b/art/art.py @@ -40,7 +40,7 @@ class Art(commands.Cog): if art_submission_channel is None: await interaction.followup.send("Art submission channel not set. Report this error to the server administrators.", ephemeral=True) return - await art_submission_channel.send(f"Art submission from {interaction.user.mention} ({interaction.user.id}):", file=art) + await art_submission_channel.send(f"Art submission from {interaction.user.mention} ({interaction.user.id}):", file=await art.to_file(filename=interaction.user.id)) await interaction.followup.send("Art submitted.", ephemeral=True) @commands.group()