add filename to FakeAttachment

This commit is contained in:
Nexus 2024-04-19 16:39:09 +01:00 committed by GitHub
parent 8b3c38ee59
commit 4d80991b2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: