diff --git a/structure/moderation/ModerationManager.js b/structure/moderation/ModerationManager.js index f8ed0f0..7fa8265 100644 --- a/structure/moderation/ModerationManager.js +++ b/structure/moderation/ModerationManager.js @@ -284,41 +284,6 @@ class ModerationManager { return response.infraction.execute(); } - - // Similar to handleInfraction, but meant for automod, deals with only 1 target - async autoModerate({ guild, action, message, reason, silent, data }) { - - const { autoModeration, moderationPoints } = guild._settings; - - let points = 0, - expiration = 0, - response = null; - const { force, duration, type } = action; - const Infraction = Constant.Infractions[type]; - - if (moderationPoints.enabled) { - points = action.points || moderationPoints.points[type]; - expiration = action.expiration || moderationPoints.expirations[type]; - } - - response = await this._handleTarget(Infraction, message.member, { - guild, - channel: message.channel, - executor: guild.me, - arguments: null, - reason, - duration, - data, - force, - silent - }); - - if (response.error) this.client.logger.debug(`Automod infraction execution failed:\n${JSON.stringify(response)}`); - // TODO: - // Figure out what we want to do with these errors if anything apart from potentially log them - // Most errors here would probably be permission issues/edge cases caused by server configuration/discord perms - - } async _handleArguments(message, targets) {