This commit is contained in:
Erik 2022-08-31 23:35:21 +03:00
parent 3400ff63be
commit b86417b24f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 3 additions and 3 deletions

View File

@ -552,7 +552,7 @@ module.exports = class AutoModeration extends Observer {
const member = message.member || await guild.members.fetch(author.id).catch(() => null);
const settings = await wrapper.settings();
const { invitefilter: setting } = settings;
const { bypass, ignore, actions, silent, enabled, whitelist = [] } = setting;
const { bypass = [], ignore = [], actions, silent, enabled, whitelist = [] } = setting;
if (!enabled) return;
const roles = member?.roles.cache.map((r) => r.id) || [];

View File

@ -398,8 +398,8 @@ class SettingsMigrator {
const filter = {
ignore: [],
silent: false,
bypass: result.invitefilter.roles,
enabled: result.invitefilter.enabled,
bypass: result.invitefilter.roles || [],
enabled: result.invitefilter.enabled || [],
actions: [],
whitelist: []
};