From 9ba2c5e0d909018a7b29ccb5b851d273fe737d19 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 5 Feb 2023 14:53:57 +0700 Subject: [PATCH] feat: MessageSelectMenu --- src/structures/MessageSelectMenu.js | 7 ++++--- tsconfig.json | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/structures/MessageSelectMenu.js b/src/structures/MessageSelectMenu.js index a3d8723..91a6b98 100644 --- a/src/structures/MessageSelectMenu.js +++ b/src/structures/MessageSelectMenu.js @@ -21,6 +21,7 @@ class MessageSelectMenu extends BaseMessageComponent { * @property {number} [maxValues] The maximum number of selections allowed * @property {MessageSelectOption[]} [options] Options for the select menu * @property {boolean} [disabled=false] Disables the select menu to prevent interactions + * @property {ChannelType[]} [channelTypes] List of channel types to include in the ChannelSelect component */ /** @@ -120,8 +121,8 @@ class MessageSelectMenu extends BaseMessageComponent { } /** - * Adds the channel type to the select menu - * @param {...ChannelType[]} channelType Added channel type + * Adds the channel types to the select menu + * @param {...ChannelType[]} channelTypes Added channel types * @returns {MessageSelectMenu} */ addChannelTypes(...channelTypes) { @@ -136,7 +137,7 @@ class MessageSelectMenu extends BaseMessageComponent { /** * Sets the channel types of the select menu - * @param {ChannelType[]} channelTypes An array of new channel types + * @param {...ChannelType[]} channelTypes An array of new channel types * @returns {MessageSelectMenu} */ setChannelTypes(...channelTypes) { diff --git a/tsconfig.json b/tsconfig.json index 19e1fdb..b0691bf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,6 @@ // Emit "declaration": false, "importHelpers": true, - "importsNotUsedAsValues": "error", "inlineSources": false, "newLine": "lf", "noEmitHelpers": true,