mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-25 07:48:32 +00:00
Removed unused interface
This commit is contained in:
parent
96b6ac67ae
commit
98ee690bdd
1 changed files with 2 additions and 10 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue