From 5b9382b529d70027f74d39a0e13b429ead8d833c Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 11 Jul 2020 23:11:37 +0300 Subject: [PATCH] misc fixes --- structure/client/components/settings/utility/Welcomer.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/structure/client/components/settings/utility/Welcomer.js b/structure/client/components/settings/utility/Welcomer.js index bdb5f42..bef0eee 100644 --- a/structure/client/components/settings/utility/Welcomer.js +++ b/structure/client/components/settings/utility/Welcomer.js @@ -34,14 +34,13 @@ class WelcomerSetting extends Setting { const { guild } = message; const setting = guild._settings[this.index] || this.default[this.index]; const { resolver } = this.client; - const response = await resolver.resolveMethod(params); const langParams = {}; let index = null; if(resolver.resolveBoolean(params[0]) !== null) { setting.enabled = resolver.resolveBoolean(params[0]); index = 'S_WELCOMER_TOGGLE'; - langParams.toggle = message.format('ON_OFF_TOGGLE', { toggle: setting.enabled }, true) + langParams.toggle = message.format('ON_OFF_TOGGLE', { toggle: setting.enabled }, true); } else { setting.message = message.content.replace(guild.prefix, '').replace(message._caller, '').replace(message._settingCaller, '').trim(); index = 'S_WELCOMER_SET'; @@ -66,10 +65,10 @@ class WelcomerSetting extends Setting { }, { name: '》Message', - value: setting.message.substring(0,1021) + setting.message.length > 1021 ? '...' : '', + value: `\`${setting.message.substring(0, 1021)}${setting.message.length > 1021 ? '...' : ''}\``, inline: false } - ] + ]; } }