From d867cb27cc23eca181c60b28f0f4d2579815a1fd Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 25 Mar 2022 00:07:38 +0700 Subject: [PATCH] typing add --- src/structures/MessageSelectMenu.js | 6 ++++++ typings/index.d.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/structures/MessageSelectMenu.js b/src/structures/MessageSelectMenu.js index a5a2472..da48910 100644 --- a/src/structures/MessageSelectMenu.js +++ b/src/structures/MessageSelectMenu.js @@ -209,6 +209,12 @@ class MessageSelectMenu extends BaseMessageComponent { return options.flat(Infinity).map(option => this.normalizeOption(option)); } // Add + /** + * Select in menu + * @param {Message} message Discord Message + * @param {Array} values Option values + * @returns {Promise; + public click(message: Message): Promise; private static resolveStyle(style: MessageButtonStyleResolvable): MessageButtonStyle; } @@ -1837,6 +1837,7 @@ export class MessageSelectMenu extends BaseMessageComponent { ...options: MessageSelectOptionData[] | MessageSelectOptionData[][] ): this; public toJSON(): APISelectMenuComponent; + public select(message: Message, values: Array): Promise; } export class NewsChannel extends BaseGuildTextChannel {