Update MessageSelectMenu.js
This commit is contained in:
parent
98450be221
commit
ef2deb64f7
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user