From 4d074b7f1cf35b53f8d511e97bd5e0f38a4b5d37 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 15 Mar 2026 15:37:07 -0400 Subject: [PATCH] CrashHandler: Revert Changes --- src/plugins/crashHandler/index.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/plugins/crashHandler/index.ts b/src/plugins/crashHandler/index.ts index 89457c306..37f1d878b 100644 --- a/src/plugins/crashHandler/index.ts +++ b/src/plugins/crashHandler/index.ts @@ -19,13 +19,12 @@ import { showNotification } from "@api/Notifications"; import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; -import { openInviteModal } from "@utils/discord"; import { Logger } from "@utils/Logger"; import { closeAllModals } from "@utils/modal"; import definePlugin, { OptionType } from "@utils/types"; import { maybePromptToUpdate } from "@utils/updater"; import { filters, findBulk, proxyLazyWebpack } from "@webpack"; -import { DraftType, ExpressionPickerStore, FluxDispatcher, NavigationRouter, SelectedChannelStore, showToast } from "@webpack/common"; +import { DraftType, ExpressionPickerStore, FluxDispatcher, NavigationRouter, SelectedChannelStore } from "@webpack/common"; const CrashHandlerLogger = new Logger("CrashHandler"); @@ -99,11 +98,8 @@ export default definePlugin({ showNotification({ color: "#eed202", title: "Discord has crashed!", - body: "Awn :( Discord has crashed two times rapidly, not attempting to recover. Click here to join our support server!", + body: "Awn :( Discord has crashed two times rapidly, not attempting to recover.", noPersist: true, - onClick: () => openInviteModal("wKgT9j2xfN").catch(() => - showToast("Invalid or expired invite"), - ) }); } catch { } @@ -137,11 +133,8 @@ export default definePlugin({ showNotification({ color: "#eed202", title: "Discord has crashed!", - body: "Attempting to recover... Click here to join our support server!", + body: "Attempting to recover...", noPersist: true, - onClick: () => openInviteModal("wKgT9j2xfN").catch(() => - showToast("Invalid or expired invite"), - ) }); } catch { }