fix typo
This commit is contained in:
parent
62e61df3d0
commit
fdbbbe6957
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue