change string for locales

This commit is contained in:
Mylloon 2022-07-21 23:01:43 +02:00
parent dcf325c7fc
commit 3b1611ee3c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 4 additions and 5 deletions

View file

@ -6,7 +6,7 @@ export default (interaction: Interaction, client: Client) => {
const command = client.commands.get(interaction.commandName); const command = client.commands.get(interaction.commandName);
if (!command) { if (!command) {
return interaction.reply({ return interaction.reply({
content: client.locales.get(interaction.locale)?.get('e_interacreate'), content: client.locales.get(interaction.locale)?.get('e_interacreate_no_command'),
ephemeral: true, ephemeral: true,
}); });
} }

View file

@ -1,8 +1,7 @@
{ {
"e_interacreate": "Sorry, the command probably no longer exists...", "e_interacreate_no_command": "Sorry, the command probably no longer exists...",
"c_ping_name": "Ping", "c_ping_desc": "Pong!",
"c_ping_desc": "Pong",
"c_ping1": "Roundtrip latency", "c_ping1": "Roundtrip latency",
"c_ping2": "Websocket heartbeat" "c_ping2": "Websocket heartbeat"
} }

View file

@ -1,5 +1,5 @@
{ {
"e_interacreate": "Désolé, la commande n'existe plus...", "e_interacreate_no_command": "Désolé, la commande n'existe plus...",
"c_ping1": "Latence totale", "c_ping1": "Latence totale",
"c_ping2": "Latence du Websocket" "c_ping2": "Latence du Websocket"