feat: MessageSelectMenu
This commit is contained in:
parent
5c8c4289b0
commit
9ba2c5e0d9
@ -21,6 +21,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
* @property {number} [maxValues] The maximum number of selections allowed
|
* @property {number} [maxValues] The maximum number of selections allowed
|
||||||
* @property {MessageSelectOption[]} [options] Options for the select menu
|
* @property {MessageSelectOption[]} [options] Options for the select menu
|
||||||
* @property {boolean} [disabled=false] Disables the select menu to prevent interactions
|
* @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
|
* Adds the channel types to the select menu
|
||||||
* @param {...ChannelType[]} channelType Added channel type
|
* @param {...ChannelType[]} channelTypes Added channel types
|
||||||
* @returns {MessageSelectMenu}
|
* @returns {MessageSelectMenu}
|
||||||
*/
|
*/
|
||||||
addChannelTypes(...channelTypes) {
|
addChannelTypes(...channelTypes) {
|
||||||
@ -136,7 +137,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the channel types of the select menu
|
* 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}
|
* @returns {MessageSelectMenu}
|
||||||
*/
|
*/
|
||||||
setChannelTypes(...channelTypes) {
|
setChannelTypes(...channelTypes) {
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
// Emit
|
// Emit
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"importsNotUsedAsValues": "error",
|
|
||||||
"inlineSources": false,
|
"inlineSources": false,
|
||||||
"newLine": "lf",
|
"newLine": "lf",
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user