From b80d12a5cc46e6ac7a08663a91bb0d994858d68f Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:35:47 -0400 Subject: [PATCH] #52 in the new Anammox File TY! --- src/equicordplugins/anammox/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/anammox/index.ts b/src/equicordplugins/anammox/index.ts index 363a1cc4..e0861b60 100644 --- a/src/equicordplugins/anammox/index.ts +++ b/src/equicordplugins/anammox/index.ts @@ -89,11 +89,12 @@ export default definePlugin({ }, { // Gift button - find: ".gifts)||void 0===", + find: "GIFT_BUTTON)", replacement: { - match: /let\{disabled:\i,channel:\i\}=\i/, - replace: "return null;$&", + match: /if\(\i\)return null;/, + replace: "return null;", }, + all: true, predicate: () => settings.store.gift, }, {