diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 0508939..36bfbef 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -415,7 +415,7 @@ class SettingsMigrator { default: 'You were **{infraction}** {from|on} the server `{server}`, your infraction details are below.' } }; - if (privatelog.onban) settings.dminfraction.messages.BAN = moderation.onban; + if (privatelog?.onban) settings.dminfraction.messages.BAN = moderation.onban; } return settings;