Skip to content

Commit

Permalink
Update Interaction.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kdspa authored May 13, 2023
1 parent 9bfb87e commit d3f8b90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class Interaction extends Base {
case InteractionTypes.APPLICATION_COMMAND_AUTOCOMPLETE: {
return new AutocompleteInteraction(data, client);
}
case InteractionTypes.MODAL_SUBMIT: {
return new ModalSubmitInteraction(data, client);
}
}

client.emit("warn", new Error(`Unknown interaction type: ${data.type}\n${JSON.stringify(data)}`));
Expand Down

0 comments on commit d3f8b90

Please sign in to comment.