relative locale

This commit is contained in:
Mylloon 2022-07-21 15:11:49 +02:00
parent 0f2078b794
commit 1b4a594880
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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,
});
}