From aaac898a116dd403d140bae79c0f12d423922a00 Mon Sep 17 00:00:00 2001 From: big nutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 27 Mar 2024 09:03:40 +0000 Subject: [PATCH] fix select --- commands/interaction/slash/utils/emoji.js | 2 +- commands/message/utils/emoji.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/interaction/slash/utils/emoji.js b/commands/interaction/slash/utils/emoji.js index 03cbafd..2c48524 100644 --- a/commands/interaction/slash/utils/emoji.js +++ b/commands/interaction/slash/utils/emoji.js @@ -211,7 +211,7 @@ module.exports = { currentRevision = res.data.platforms[DEFAULT_PLATFORM].images[0].id - let selectTypeOptions = Object.keys(res.data.platforms).map((r) => { + let selectTypeOptions = Object.keys(res.data.platforms).splice(0, 25).map((r) => { let pl = res.data.platforms[r] return { label: pl.name, diff --git a/commands/message/utils/emoji.js b/commands/message/utils/emoji.js index 4fa7339..34c07f3 100644 --- a/commands/message/utils/emoji.js +++ b/commands/message/utils/emoji.js @@ -238,7 +238,7 @@ module.exports = { currentRevision = res.data.platforms[DEFAULT_PLATFORM].images[0].id - let selectTypeOptions = Object.keys(res.data.platforms).map((r) => { + let selectTypeOptions = Object.keys(res.data.platforms).splice(0, 25).map((r) => { let pl = res.data.platforms[r] return { label: pl.name,