From 00b572b55f7165d6c4e9e821293220f5fb393d31 Mon Sep 17 00:00:00 2001 From: Slara <162091285+slara6804@users.noreply.github.com> Date: Wed, 10 Sep 2025 21:01:52 +0200 Subject: [PATCH] Update index.ts --- plugins/nsfwbypass/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/nsfwbypass/src/index.ts b/plugins/nsfwbypass/src/index.ts index 39b9523..9a24a5d 100644 --- a/plugins/nsfwbypass/src/index.ts +++ b/plugins/nsfwbypass/src/index.ts @@ -17,9 +17,9 @@ let patches = []; function isNSFWChannel(channelId) { if (typeof channelId === "string") { const channel = getChannel(channelId); - return channel?.nsfw === true; + return channel?.nsfw === false; } - return channelId?.nsfw === true; + return channelId?.nsfw === false; } function NSFWWarningContent() { @@ -45,7 +45,7 @@ const enhanceUserAccessibility = (userData) => { export default { onLoad: () => { storage.ageBypass ??= false; - storage.nsfwBypass ??= true; + storage.nsfwBypass ??= false; storage.showWarningPopup ??= true; if (storage.nsfwBypass) { @@ -54,7 +54,7 @@ export default { patches.push(instead("shouldNSFWGateGuild", NSFWStuff, () => false)); patches.push(after("getCurrentUser", UserStore, (_, user) => { if (user?.hasOwnProperty("nsfwAllowed")) { - user.nsfwAllowed = true; + user.nsfwAllowed = false; } return user; }));