mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
docs(MessageSelectMenu): fix options typings (#5922)
This commit is contained in:
@@ -137,7 +137,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds options to the select menu.
|
* Adds options to the select menu.
|
||||||
* @param {...(MessageSelectOption[]|MessageSelectOption[])} options The options to add
|
* @param {...MessageSelectOptionData|MessageSelectOptionData[]} options The options to add
|
||||||
* @returns {MessageSelectMenu}
|
* @returns {MessageSelectMenu}
|
||||||
*/
|
*/
|
||||||
addOptions(...options) {
|
addOptions(...options) {
|
||||||
@@ -149,7 +149,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
* Removes, replaces, and inserts options in the select menu.
|
* Removes, replaces, and inserts options in the select menu.
|
||||||
* @param {number} index The index to start at
|
* @param {number} index The index to start at
|
||||||
* @param {number} deleteCount The number of options to remove
|
* @param {number} deleteCount The number of options to remove
|
||||||
* @param {...MessageSelectOption|MessageSelectOption[]} [options] The replacing option objects
|
* @param {...MessageSelectOptionData|MessageSelectOptionData[]} [options] The replacing option objects
|
||||||
* @returns {MessageSelectMenu}
|
* @returns {MessageSelectMenu}
|
||||||
*/
|
*/
|
||||||
spliceOptions(index, deleteCount, ...options) {
|
spliceOptions(index, deleteCount, ...options) {
|
||||||
@@ -191,7 +191,7 @@ class MessageSelectMenu extends BaseMessageComponent {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalizes option input and resolves strings and emojis.
|
* Normalizes option input and resolves strings and emojis.
|
||||||
* @param {...MessageSelectOptionData|MessageSelectOption[]} options The select menu options to normalize
|
* @param {...MessageSelectOptionData|MessageSelectOptionData[]} options The select menu options to normalize
|
||||||
* @returns {MessageSelectOption[]}
|
* @returns {MessageSelectOption[]}
|
||||||
*/
|
*/
|
||||||
static normalizeOptions(...options) {
|
static normalizeOptions(...options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user