fix: modals remapping

This commit is contained in:
Jacob Nguyen
2022-12-31 13:41:20 -06:00
parent 7089f5c0dc
commit a13df6fb42

View File

@@ -67,7 +67,7 @@ export default class InteractionHandler extends EventsHandler<{
);
this.setState({ event, mod });
} else if (event.isModalSubmit()) {
const mod = get(ms => ms.InteractionHandlers[5].get(event.customId));
const mod = get(ms => ms.ModalSubmit.get(event.customId));
this.setState({ event, mod });
} else {
throw Error('This interaction is not supported yet');