From bf7378a1f7b60d3b9526c2ba29af57e60a81ea7e Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 25 May 2022 21:52:45 +0200 Subject: [PATCH] [fix] attachments on the command message --- labscore/utils/attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labscore/utils/attachment.js b/labscore/utils/attachment.js index 3c96fe5..b546643 100644 --- a/labscore/utils/attachment.js +++ b/labscore/utils/attachment.js @@ -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 = [];