From 19ae208ae4a2782bf59f5d34281c6da58b2a983f Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sun, 2 Jul 2023 15:19:05 +0200 Subject: [PATCH] fix missing shortcodes if only one image is available --- commands/message/utils/emoji.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/message/utils/emoji.js b/commands/message/utils/emoji.js index d1a91b1..faf8f82 100644 --- a/commands/message/utils/emoji.js +++ b/commands/message/utils/emoji.js @@ -154,6 +154,7 @@ module.exports = { name: `${res.data.name} • ${res.data.platforms[args.type].images[0].version}`, url: res.data.link }, + description: res.data.codes.map((c)=>pill(c)).join(' '), image: { url: res.data.platforms[args.type].images[0].src },