From 4d80991b2b84f396700bf3ac9d815dd49a668c9f Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 19 Apr 2024 16:39:09 +0100 Subject: [PATCH] add filename to FakeAttachment --- cogs/other.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cogs/other.py b/cogs/other.py index e2426f1..edc548d 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -748,6 +748,7 @@ class OtherCog(commands.Cog): class FakeAttachment: def __init__(self, *urls: str): self.urls = iter(urls) + self.filename = urls[0].split("/")[-1] async def save(self, f): async with httpx.AsyncClient() as client: