From 74a4c1763f644e974956eabced3b5c17c0327d47 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 2 Aug 2022 22:15:38 +0300 Subject: [PATCH] fixes --- src/structure/client/wrappers/MessageWrapper.js | 2 +- src/structure/components/observers/GuildLogging.js | 2 +- .../components/settings/logging/Moderation.js | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/structure/client/wrappers/MessageWrapper.js b/src/structure/client/wrappers/MessageWrapper.js index d32b2e5..9a9a4ea 100644 --- a/src/structure/client/wrappers/MessageWrapper.js +++ b/src/structure/client/wrappers/MessageWrapper.js @@ -96,7 +96,7 @@ class MessageWrapper { async deleteReply() { if (this._reply) return this._reply.delete(); - throw new Error('Message not replied to'); + // throw new Error('Message not replied to'); } awaitReactions(...opts) { diff --git a/src/structure/components/observers/GuildLogging.js b/src/structure/components/observers/GuildLogging.js index 3e953c8..4953c2f 100644 --- a/src/structure/components/observers/GuildLogging.js +++ b/src/structure/components/observers/GuildLogging.js @@ -130,7 +130,7 @@ class GuildLogger extends Observer { const embed = { title: guild.format(`MSGLOG_THREAD_TITLE`, { action: guild.format('THREAD_SWITCH', { type }, { code: true }), channel: parent.name }), - description: guild.format(`MSGLOG_THREAD_DESC_${type}`, { owner: owner.tag, actor: actor?.tag || 'Unknown', name: thread.name, id: thread.id }), + description: guild.format(`MSGLOG_THREAD_DESC_${type}`, { owner: owner.tag, actor: actor?.tag || 'System', name: thread.name, id: thread.id }), footer: { text: guild.format('MSGLOG_THREAD_FOOTER', { ownerId: owner.id, channelId: parent.id, threadId: thread.id }) }, color: CONSTANTS.COLORS[`THREAD_${type}`] }; diff --git a/src/structure/components/settings/logging/Moderation.js b/src/structure/components/settings/logging/Moderation.js index 28ab163..275ef84 100644 --- a/src/structure/components/settings/logging/Moderation.js +++ b/src/structure/components/settings/logging/Moderation.js @@ -116,13 +116,15 @@ class ModerationLog extends Setting { name: 'GENERAL_STATUS', value: guild.format('GENERAL_STATE', { bool: Boolean(setting.enabled) }, { code: true }), inline: true - }, - { + }, { name: 'GENERAL_CHANNEL', value: `<#${setting.channel}>`, inline: true - }, - { + }, { + name: 'GENERAL_ANONYMOUS', + value: guild.format('GENERAL_STATE', { bool: setting.anonymous }, { code: true }), + inline: true + }, { name: 'GENERAL_INFRACTIONS', value: setting.infractions.join(', ') }