forked from Galactic/galactic-bot
bugfixes
This commit is contained in:
parent
c569520ad0
commit
a0a8cf6c3a
@ -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}`]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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() };
|
||||||
|
Loading…
Reference in New Issue
Block a user