This commit is contained in:
Erik 2022-09-01 10:45:10 +03:00
parent c569520ad0
commit a0a8cf6c3a
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,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 || 'Missing parent' }), title: guild.format(`MSGLOG_THREAD_TITLE`, { action: guild.format('THREAD_SWITCH', { type }, { code: true }), channel: parent?.name || 'Missing parent' }),
description: guild.format(`MSGLOG_THREAD_DESC_${type}`, { owner: owner.tag, actor: actor?.tag || 'System', 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 || 'Missing parent', threadId: thread.id }) },
color: CONSTANTS.COLORS[`THREAD_${type}`] color: CONSTANTS.COLORS[`THREAD_${type}`]
}; };

View File

@ -259,7 +259,7 @@ class SettingsMigrator {
if (automod) { if (automod) {
const thresholdKeys = Object.keys(automod?.thresholds, {}); const thresholdKeys = Object.keys(automod?.thresholds || {});
const thresholds = {}; const thresholds = {};
for (const key of thresholdKeys) { for (const key of thresholdKeys) {
thresholds[key] = { type: result.automod.thresholds[key].toUpperCase() }; thresholds[key] = { type: result.automod.thresholds[key].toUpperCase() };