forwards support pt. 1

This commit is contained in:
bignutty 2024-09-09 16:45:23 +02:00
parent 5c13db8f62
commit 35c95a748e
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,8 @@ module.exports.attachmentTypes = attachmentTypes
// Returns the first attachment from a message (if it exists)
function getMessageAttachment(message) {
if(message.messageSnapshots && message.messageSnapshots.length >= 1) message = message.messageSnapshots.first().message
if (message.attachments.first()) {
return message.attachments.first()
} else if (message.embeds.length && message.embeds.toArray()[0].image) {

View file

@ -11,7 +11,7 @@
"author": "bignutty",
"license": "ISC",
"dependencies": {
"detritus-client": "^0.17.0-beta.29",
"detritus-client": "^0.17.0-beta.40",
"dotenv": "^16.4.5",
"emoji-aware": "^3.1.0",
"eventemitter3": "^4.0.7",