mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
[fix] attachment helper for videos
This commit is contained in:
parent
e97066e112
commit
51f054dcfc
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue