Removed unused interface

This commit is contained in:
Inbestigator 2024-03-08 16:06:18 -08:00
parent 96b6ac67ae
commit 98ee690bdd

View file

@ -10,13 +10,7 @@ import { definePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore } from "@webpack/common"; import { ChannelStore, Menu, MessageStore, NavigationRouter, PresenceStore, PrivateChannelsStore, UserStore } from "@webpack/common";
import { type Channel, type Guild, type Message, type User } from "discord-types/general"; import { type Message } from "discord-types/general";
interface ContextProps {
channel: Channel;
user: User;
guild: Guild;
}
interface IMessageCreate { interface IMessageCreate {
type: "MESSAGE_CREATE"; type: "MESSAGE_CREATE";
@ -139,9 +133,7 @@ export default definePlugin({
const mentioned = MessageStore.getMessage(channelId, message.id)?.mentioned; const mentioned = MessageStore.getMessage(channelId, message.id)?.mentioned;
if ((bypasses.guilds.includes(guildId) || bypasses.channels.includes(channelId)) && mentioned) { if ((bypasses.guilds.includes(guildId) || bypasses.channels.includes(channelId)) && mentioned) {
await showNotification(message, guildId); await showNotification(message, guildId);
return; } else if (bypasses.users.includes(message.author.id)) {
}
if (bypasses.users.includes(message.author.id)) {
if (channelId === await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id)) { if (channelId === await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id)) {
await showNotification(message); await showNotification(message);
} else if (mentioned && (settings.store.allowOutsideOfDms === true)) { } else if (mentioned && (settings.store.allowOutsideOfDms === true)) {