diff --git a/language/languages/en_us/en_us_general.lang b/language/languages/en_us/en_us_general.lang index e85143d..a29e958 100644 --- a/language/languages/en_us/en_us_general.lang +++ b/language/languages/en_us/en_us_general.lang @@ -59,6 +59,16 @@ switch("{set}") { break; } +[TAGS] +**Usable tags:** +{mention} - mentions the user +{tag} - username#discriminator +{user} - username +{guildsize} - member count of the server +{guildname} - name of the server +{accage} - age of the account +{id} - ID of the account + //Errors [ERR_CHANNEL_RESOLVE] diff --git a/structure/client/components/settings/moderation/ModerationLog.js b/structure/client/components/settings/moderation/ModerationLog.js index 7d527fa..98bbc56 100644 --- a/structure/client/components/settings/moderation/ModerationLog.js +++ b/structure/client/components/settings/moderation/ModerationLog.js @@ -36,11 +36,11 @@ class ModerationLogsSetting extends Setting { async handle(message, params) { - const setting = message.guild._settings.moderationLog; + const { guild } = message; + const setting = guild._settings.moderationLog; const response = await this.resolveMethod(params, CONSTANTS.INFRACTIONS, setting.infractions); if (response) { - console.log(response); if (params.length < 2 && response.method !== 'list') return { msg: message.format('MISSING_ARGS'), @@ -77,7 +77,7 @@ class ModerationLogsSetting extends Setting { let [channel] = params; - channel = await message.guild.resolveChannel(channel); + channel = await guild.resolveChannel(channel); if (!channel) return { msg: message.format('S_MODERATIONLOG_CHANNEL404', { val: params[0] }), error: true @@ -98,7 +98,7 @@ class ModerationLogsSetting extends Setting { }; setting.channel = channel.id; - await message.guild._updateSettings({ [this.index]: setting }); return { + await guild._updateSettings({ [this.index]: setting }); return { msg: message.format('S_MODERATIONLOG_CHANNEL_SUCCESS', { channel: channel.name }), error: false };