diff --git a/src/plugins/statusPresets/index.tsx b/src/plugins/statusPresets/index.tsx
index 8763c1b92..f28e88c99 100644
--- a/src/plugins/statusPresets/index.tsx
+++ b/src/plugins/statusPresets/index.tsx
@@ -24,7 +24,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import { classes } from "@utils/misc";
import definePlugin, { OptionType, StartAt } from "@utils/types";
-import { findByCodeLazy, findByPropsLazy, findComponentByCodeLazy } from "@webpack";
+import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
import { Button, Clickable, Icons, Menu, Toasts, UserStore, useState } from "@webpack/common";
const settings = definePluginSettings({
@@ -45,19 +45,35 @@ interface Emoji {
interface DiscordStatus {
emojiInfo: Emoji | null;
text: string;
- clearAfter: string | number | null;
+ clearAfter: "TODAY" | number | null;
status: "online" | "dnd" | "idle" | "invisible";
}
const StatusStyles = findByPropsLazy("statusItem");
-const setStatus = findByCodeLazy(".CUSTOM_STATUS_UPDATED,{");
const PMenu = findComponentByCodeLazy(".menuItemLabel", ".menuItemInner");
const EmojiComponent = findComponentByCodeLazy(".translateSurrogatesToInlineEmoji(");
-const customStatusSettings = getUserSettingLazy("status", "customStatus");
+const CustomStatusSettings = getUserSettingLazy("status", "customStatus")!;
-const ClearStatusButton = () =>