diff --git a/language/languages/en_us/commands/en_us_utility.lang b/language/languages/en_us/commands/en_us_utility.lang new file mode 100644 index 0000000..17d4d4b --- /dev/null +++ b/language/languages/en_us/commands/en_us_utility.lang @@ -0,0 +1,2 @@ +[PING_COMMAND_RESPONSE] +Pong! {number} \ No newline at end of file diff --git a/structure/client/components/commands/utility/Ping.js b/structure/client/components/commands/utility/Ping.js index 4bf53d9..53b8000 100644 --- a/structure/client/components/commands/utility/Ping.js +++ b/structure/client/components/commands/utility/Ping.js @@ -17,7 +17,7 @@ class PingCommand extends Command { async execute(message) { const ping = this.client.ws.ping.toFixed(0); - return message.respond(`Pong! \`${ping}ms\``, { emoji: 'success' }); + return message.respond(`${message.guild.format('PING_COMMAND_RESPONSE')} \`${ping}ms\``, { emoji: 'success' }); } } diff --git a/structure/extensions/Guild.js b/structure/extensions/Guild.js index 989275d..13b0d34 100644 --- a/structure/extensions/Guild.js +++ b/structure/extensions/Guild.js @@ -21,7 +21,7 @@ const Guild = Structures.extend('Guild', (Guild) => { } - async format(key, parameters = {}) { + format(key, parameters = {}) { const language = "en_us"; //this._settings.language or something idk let value = this.client.localeLoader.languages[language][key];