From 1b4a59488054a4c12f9ce045e290b1ecfd25d79d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 21 Jul 2022 15:11:49 +0200 Subject: [PATCH] relative locale --- src/events/interactions/interactionCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/interactions/interactionCreate.ts b/src/events/interactions/interactionCreate.ts index 22a93a6..f550281 100644 --- a/src/events/interactions/interactionCreate.ts +++ b/src/events/interactions/interactionCreate.ts @@ -6,7 +6,7 @@ export default (interaction: Interaction, client: Client) => { const command = client.commands.get(interaction.commandName); if (!command) { return interaction.reply({ - content: client.locale.get('e_interacreate'), + content: client.locales.get(interaction.locale)?.get('e_interacreate'), ephemeral: true, }); }