[fix] attachment helper for videos

This commit is contained in:
derpystuff 2022-05-26 18:42:35 +02:00
parent e97066e112
commit 51f054dcfc

View file

@ -76,7 +76,7 @@ async function getRecentVideo(context, limit) {
) {
attachments.push(message.embeds.toArray()[0].video)
} else if (message.attachments.first() &&
message.attachments.first().contentType.includes("video")){
message.attachments.first().contentType?.includes("video")){
attachments.push(message.attachments.first())
}
}