mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix?
This commit is contained in:
parent
21d049dca8
commit
6774804543
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue