support any audio file

This commit is contained in:
Nexus 2023-12-03 22:54:05 +00:00
parent 32f512a5fa
commit 6db65b26a8
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -2453,7 +2453,7 @@ class OtherCog(commands.Cog):
_ft = "wav"
for attachment in message.attachments:
if attachment.content_type == "audio/":
if attachment.content_type.startswith("audio/"):
_ft = attachment.filename.split(".")[-1]
break
else: