Update MessageSelectMenu.js

This commit is contained in:
March 7th 2022-12-20 22:22:58 +07:00
parent 98450be221
commit ef2deb64f7

View File

@ -45,7 +45,7 @@ class MessageSelectMenu extends BaseMessageComponent {
* @param {MessageSelectMenu|MessageSelectMenuOptions} [data={}] MessageSelectMenu to clone or raw data * @param {MessageSelectMenu|MessageSelectMenuOptions} [data={}] MessageSelectMenu to clone or raw data
*/ */
constructor(data = {}) { constructor(data = {}) {
super({ type: data?.type ? MessageComponentTypes[data.type] : 'STRING_SELECT' }); super({ type: BaseMessageComponent.resolveType(data.type) ?? 'STRING_SELECT' });
this.setup(data); this.setup(data);
} }