mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
add filename to FakeAttachment
This commit is contained in:
parent
8b3c38ee59
commit
4d80991b2b
1 changed files with 1 additions and 0 deletions
|
@ -748,6 +748,7 @@ class OtherCog(commands.Cog):
|
||||||
class FakeAttachment:
|
class FakeAttachment:
|
||||||
def __init__(self, *urls: str):
|
def __init__(self, *urls: str):
|
||||||
self.urls = iter(urls)
|
self.urls = iter(urls)
|
||||||
|
self.filename = urls[0].split("/")[-1]
|
||||||
|
|
||||||
async def save(self, f):
|
async def save(self, f):
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
|
|
Loading…
Reference in a new issue