From 0f39650d060bfde712364b79493af4366007018c Mon Sep 17 00:00:00 2001 From: almeidx Date: Sun, 31 Oct 2021 18:34:42 +0000 Subject: [PATCH] remove non-functional hack --- .../Automod/events/runAutomodOnThreadEvents.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backend/src/plugins/Automod/events/runAutomodOnThreadEvents.ts b/backend/src/plugins/Automod/events/runAutomodOnThreadEvents.ts index c452e6b9..b0c74ee4 100644 --- a/backend/src/plugins/Automod/events/runAutomodOnThreadEvents.ts +++ b/backend/src/plugins/Automod/events/runAutomodOnThreadEvents.ts @@ -1,6 +1,5 @@ import { typedGuildEventListener } from "knub"; import { RecentActionType } from "../constants"; -import { GuildSavedMessages } from "../../../data/GuildSavedMessages"; import { runAutomod } from "../functions/runAutomod"; import { AutomodContext, AutomodPluginType } from "../types"; @@ -21,19 +20,6 @@ export const RunAutomodOnThreadCreate = typedGuildEventListener c.id === thread.parentId); - if (sourceChannel?.isText()) { - const sourceMessage = sourceChannel.messages.cache.find( - m => m.thread?.id === thread.id || m.reference?.channelId === thread.id, - ); - if (sourceMessage) { - const savedMessage = pluginData.state.savedMessages.msgToSavedMessage(sourceMessage); - savedMessage.channel_id = thread.id; - context.message = savedMessage; - } - } - pluginData.state.queue.add(() => { pluginData.state.recentActions.push({ type: RecentActionType.ThreadCreate,