[fix] attachments on the command message

This commit is contained in:
derpystuff 2022-05-25 21:52:45 +02:00
parent 0c4e48bd39
commit bf7378a1f7

View file

@ -8,7 +8,7 @@ async function getRecentMedia(context, limit) {
if (!context.message.channel) {
return undefined;
} else if (context.message.attachments.length > 0) {
return context.message.attachments.first();
return [context.message.attachments.first()]
}
let messages = [];