Skip to content

Commit

Permalink
fix: modals remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Dec 31, 2022
1 parent 7089f5c commit a13df6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/events/interactionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit a13df6f

Please sign in to comment.