From 5ee40ed82fbc8b435f54796d821b99f78ae4f636 Mon Sep 17 00:00:00 2001 From: connorhsm Date: Sun, 24 Jul 2022 22:13:34 +1000 Subject: [PATCH] Update interaction is command object inline with v14 --- junior.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);