From 99bac881555702c4a5d64e294e17efbf7dd26eae Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Wed, 17 Jul 2024 14:39:18 +0200 Subject: [PATCH] [d17] fix select menus --- commands/interaction/slash/utils/emoji.js | 2 ++ commands/message/genai/gemini.js | 1 + commands/message/mod/analyze.js | 1 + commands/message/search/quora.js | 1 + commands/message/utils/emoji.js | 2 ++ 5 files changed, 7 insertions(+) diff --git a/commands/interaction/slash/utils/emoji.js b/commands/interaction/slash/utils/emoji.js index a2fb58a..2f01c7b 100644 --- a/commands/interaction/slash/utils/emoji.js +++ b/commands/interaction/slash/utils/emoji.js @@ -221,6 +221,7 @@ module.exports = { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select platform type", customId: "emoji-type", options: selectTypeOptions, @@ -228,6 +229,7 @@ module.exports = { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select emoji revision", customId: "emoji-version", options: selectOptions, diff --git a/commands/message/genai/gemini.js b/commands/message/genai/gemini.js index 4da8410..e5ebe07 100644 --- a/commands/message/genai/gemini.js +++ b/commands/message/genai/gemini.js @@ -120,6 +120,7 @@ module.exports = { } components.addSelectMenu({ + defaultValues: [], placeholder: "View other drafts", customId: "bard-drafts", options: draftOptions diff --git a/commands/message/mod/analyze.js b/commands/message/mod/analyze.js index f20a428..3f3fba2 100644 --- a/commands/message/mod/analyze.js +++ b/commands/message/mod/analyze.js @@ -103,6 +103,7 @@ module.exports = { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select filter type", customId: "filter-type", options: selectOptions diff --git a/commands/message/search/quora.js b/commands/message/search/quora.js index 025a1ad..24fa526 100644 --- a/commands/message/search/quora.js +++ b/commands/message/search/quora.js @@ -104,6 +104,7 @@ async function quoraPaginator(context, pages, refMappings, currentRef) { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select a question.", customId: "quora-select", options: selectOptions diff --git a/commands/message/utils/emoji.js b/commands/message/utils/emoji.js index cd20223..d64f945 100644 --- a/commands/message/utils/emoji.js +++ b/commands/message/utils/emoji.js @@ -258,6 +258,7 @@ module.exports = { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select platform type", customId: "emoji-type", options: selectTypeOptions, @@ -265,6 +266,7 @@ module.exports = { }) components.addSelectMenu({ + defaultValues: [], placeholder: "Select emoji revision", customId: "emoji-version", options: selectOptions,