feat: MessageSelectMenu

This commit is contained in:
Elysia 2023-02-05 14:53:57 +07:00
parent 5c8c4289b0
commit 9ba2c5e0d9
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -20,7 +20,6 @@
// Emit
"declaration": false,
"importHelpers": true,
"importsNotUsedAsValues": "error",
"inlineSources": false,
"newLine": "lf",
"noEmitHelpers": true,