Skip to content

Commit

Permalink
Update interaction is command object inline with v14
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Jul 24, 2022
1 parent e5ddb61 commit 5ee40ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion junior.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ for (const file of eventFiles) {
}

client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
if (!interaction.isChatInputCommand()) return;

const command = client.commands.get(interaction.commandName);

Expand Down

0 comments on commit 5ee40ed

Please sign in to comment.