From 98ee690bdd5021f5108690ce9e71f61e4756422e Mon Sep 17 00:00:00 2001 From: Inbestigator Date: Fri, 8 Mar 2024 16:06:18 -0800 Subject: [PATCH] Removed unused interface --- src/plugins/bypassDND/index.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/plugins/bypassDND/index.tsx b/src/plugins/bypassDND/index.tsx index 351ba0382..df0af0cde 100644 --- a/src/plugins/bypassDND/index.tsx +++ b/src/plugins/bypassDND/index.tsx @@ -10,13 +10,7 @@ import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore } from "@webpack/common"; -import { type Channel, type Guild, type Message, type User } from "discord-types/general"; - -interface ContextProps { - channel: Channel; - user: User; - guild: Guild; -} +import { type Message } from "discord-types/general"; interface IMessageCreate { type: "MESSAGE_CREATE"; @@ -139,9 +133,7 @@ export default definePlugin({ const mentioned = MessageStore.getMessage(channelId, message.id)?.mentioned; if ((bypasses.guilds.includes(guildId) || bypasses.channels.includes(channelId)) && mentioned) { await showNotification(message, guildId); - return; - } - if (bypasses.users.includes(message.author.id)) { + } else if (bypasses.users.includes(message.author.id)) { if (channelId === await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id)) { await showNotification(message); } else if (mentioned && (settings.store.allowOutsideOfDms === true)) {