From ef2deb64f72dbc06b2784f626e1a4abaa691c749 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 20 Dec 2022 22:22:58 +0700 Subject: [PATCH] Update MessageSelectMenu.js --- src/structures/MessageSelectMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/MessageSelectMenu.js b/src/structures/MessageSelectMenu.js index a656d88..a3d8723 100644 --- a/src/structures/MessageSelectMenu.js +++ b/src/structures/MessageSelectMenu.js @@ -45,7 +45,7 @@ class MessageSelectMenu extends BaseMessageComponent { * @param {MessageSelectMenu|MessageSelectMenuOptions} [data={}] MessageSelectMenu to clone or raw data */ constructor(data = {}) { - super({ type: data?.type ? MessageComponentTypes[data.type] : 'STRING_SELECT' }); + super({ type: BaseMessageComponent.resolveType(data.type) ?? 'STRING_SELECT' }); this.setup(data); }