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 = {}) {