This commit is contained in:
Erik 2022-08-02 22:15:38 +03:00
parent c072bf18db
commit 74a4c1763f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 8 additions and 6 deletions

View File

@ -96,7 +96,7 @@ class MessageWrapper {
async deleteReply() { async deleteReply() {
if (this._reply) return this._reply.delete(); if (this._reply) return this._reply.delete();
throw new Error('Message not replied to'); // throw new Error('Message not replied to');
} }
awaitReactions(...opts) { awaitReactions(...opts) {

View File

@ -130,7 +130,7 @@ class GuildLogger extends Observer {
const embed = { const embed = {
title: guild.format(`MSGLOG_THREAD_TITLE`, { action: guild.format('THREAD_SWITCH', { type }, { code: true }), channel: parent.name }), 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 }) }, footer: { text: guild.format('MSGLOG_THREAD_FOOTER', { ownerId: owner.id, channelId: parent.id, threadId: thread.id }) },
color: CONSTANTS.COLORS[`THREAD_${type}`] color: CONSTANTS.COLORS[`THREAD_${type}`]
}; };

View File

@ -116,13 +116,15 @@ class ModerationLog extends Setting {
name: 'GENERAL_STATUS', name: 'GENERAL_STATUS',
value: guild.format('GENERAL_STATE', { bool: Boolean(setting.enabled) }, { code: true }), value: guild.format('GENERAL_STATE', { bool: Boolean(setting.enabled) }, { code: true }),
inline: true inline: true
}, }, {
{
name: 'GENERAL_CHANNEL', name: 'GENERAL_CHANNEL',
value: `<#${setting.channel}>`, value: `<#${setting.channel}>`,
inline: true inline: true
}, }, {
{ name: 'GENERAL_ANONYMOUS',
value: guild.format('GENERAL_STATE', { bool: setting.anonymous }, { code: true }),
inline: true
}, {
name: 'GENERAL_INFRACTIONS', name: 'GENERAL_INFRACTIONS',
value: setting.infractions.join(', ') value: setting.infractions.join(', ')
} }