From f52ddc6e2562ed5f0a9175f1b62d744ee53c785f Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 3 Oct 2022 20:27:51 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B0=20=D0=B1=D0=BB=D1=8F=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/extenders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/extenders.js b/helpers/extenders.js index d9d4070b..ccb7b1c9 100644 --- a/helpers/extenders.js +++ b/helpers/extenders.js @@ -38,8 +38,8 @@ Message.prototype.replyT = function (key, args, options = {}) { let string = this.translate(key, args, this.guild ? this.guild.data.language : "ru-RU"); if (options.prefixEmoji) string = `${this.client.customEmojis[options.prefixEmoji]} | ${string}`; - if (options.edit) return this.edit({ content: string, allowedMentions: { repliedUser: options.mention || true } }); - else return this.reply({ content: string, allowedMentions: { repliedUser: options.mention || true } }); + if (options.edit) return this.edit({ content: string, allowedMentions: { repliedUser: options.mention ? true : false } }); + else return this.reply({ content: string, allowedMentions: { repliedUser: options.mention ? true : false } }); }; Message.prototype.error = function (key, args, options = {}) {