fix video embed dl

This commit is contained in:
Nexus 2024-04-19 16:31:52 +01:00 committed by GitHub
parent 827bdf293f
commit 952b614462
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -780,7 +780,7 @@ class OtherCog(commands.Cog):
else:
for embed in message.embeds:
if embed.type == "video" and embed.video.url.endswith(("mp4", "webm")):
_ft = embed.video.split(".")[-1]
_ft = embed.video.url.split(".")[-1]
attachment = FakeAttachment(embed.video.proxy_url, embed.video.url)
break
else: