From 67748045431d4c7f39148b65ee9233264f5d4e16 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 4 Nov 2023 23:01:47 +0500 Subject: [PATCH] fix? --- helpers/extenders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/extenders.js b/helpers/extenders.js index 1f55f701..70b40c21 100644 --- a/helpers/extenders.js +++ b/helpers/extenders.js @@ -6,7 +6,7 @@ User.prototype.getUsername = function () { BaseInteraction.prototype.translate = function (key, args, emoji) { const lang = this.client.translations.get(this.guild.data.language ?? "en-US"); - const string = emoji ? `${this.client.customEmojis[emoji]} | ${lang(key, args)}` : lang(key, args); + const string = emoji !== undefined ? `${this.client.customEmojis[emoji]} | ${lang(key, args)}` : lang(key, args); return string; }; @@ -33,7 +33,7 @@ BaseInteraction.prototype.error = function (key, args, options = {}) { Message.prototype.translate = function (key, args, emoji) { const lang = this.client.translations.get(this.guild.data.language ?? "en-US"); - const string = emoji ? `${this.client.customEmojis[emoji]} | ${lang(key, args)}` : lang(key, args); + const string = emoji !== undefined ? `${this.client.customEmojis[emoji]} | ${lang(key, args)}` : lang(key, args); return string; };