mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Fix not finding embeds
This commit is contained in:
parent
c01698c775
commit
827bdf293f
1 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ class OtherCog(commands.Cog):
|
||||||
|
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
async with self.transcribe_lock:
|
async with self.transcribe_lock:
|
||||||
if not message.attachments:
|
if not message.attachments and not message.embeds:
|
||||||
return await ctx.respond("No attachments found.")
|
return await ctx.respond("No attachments found.")
|
||||||
|
|
||||||
_ft = "wav"
|
_ft = "wav"
|
||||||
|
@ -779,7 +779,7 @@ class OtherCog(commands.Cog):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
for embed in message.embeds:
|
for embed in message.embeds:
|
||||||
if embed.type == "video" and embed.video.url.split(".")[-1] in ("mp4", "webm"):
|
if embed.type == "video" and embed.video.url.endswith(("mp4", "webm")):
|
||||||
_ft = embed.video.split(".")[-1]
|
_ft = embed.video.split(".")[-1]
|
||||||
attachment = FakeAttachment(embed.video.proxy_url, embed.video.url)
|
attachment = FakeAttachment(embed.video.proxy_url, embed.video.url)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue