diff --git a/src/events/interactions/interactionCreate.ts b/src/events/interactions/interactionCreate.ts index 525a29a..f4b57bd 100644 --- a/src/events/interactions/interactionCreate.ts +++ b/src/events/interactions/interactionCreate.ts @@ -4,7 +4,7 @@ import { getLocale } from '../../utils/locales'; /** https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-interactionCreate */ export default (interaction: Interaction, client: Client) => { if (interaction.isCommand()) { - const command = client.commands.get(interaction.commandName); + const command = client.commands.list.get(interaction.commandName); if (!command) { const loc = getLocale(client, interaction.locale); return interaction.reply({