forked from Galactic/galactic-bot
hnnnng
This commit is contained in:
parent
b86417b24f
commit
376d3520d2
@ -248,6 +248,7 @@ class GuildWrapper {
|
||||
await settingsMigrator.end();
|
||||
await modlogsMigrator.end();
|
||||
|
||||
await this.client.mongodb.infractions.deleteMany({ guild: this.id });
|
||||
await this.client.mongodb.infractions.insertMany(importedModlogs);
|
||||
this._data.caseId = importedModlogs[importedModlogs.length - 1].case;
|
||||
await this.updateData({
|
||||
|
@ -556,7 +556,7 @@ module.exports = class AutoModeration extends Observer {
|
||||
if (!enabled) return;
|
||||
const roles = member?.roles.cache.map((r) => r.id) || [];
|
||||
|
||||
if (roles.some((r) => bypass.includes(r)) || ignore.includes(channel.id)) return;
|
||||
if (roles.some((r) => bypass?.includes(r)) || ignore?.includes(channel.id)) return;
|
||||
|
||||
const missing = channel.permissionsFor(this.client.user).missing('ManageMessages');
|
||||
if (missing.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user