diff --git a/junior.js b/junior.js index 51c6dce..118a5bc 100644 --- a/junior.js +++ b/junior.js @@ -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);