From 85cd2cf9ba848996c50b8c678ddbc28d3affc5ac Mon Sep 17 00:00:00 2001 From: nin0 Date: Mon, 21 Apr 2025 18:21:31 -0400 Subject: [PATCH] remove unused isDM --- index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.tsx b/index.tsx index 11ef42e..bbd8e45 100644 --- a/index.tsx +++ b/index.tsx @@ -11,7 +11,7 @@ import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; import { findComponentByCodeLazy } from "@webpack"; import { ChannelStore, DateUtils, GuildStore, IconUtils, NavigationRouter, Popout, SnowflakeUtils, Text, UserStore, useStateFromStores } from "@webpack/common"; -import { Channel, Guild } from "discord-types/general"; +import { Guild } from "discord-types/general"; const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:v,fetchGuildProfile:O,fetchStatus:I}"); const cl = classNameFactory("vc-serverprofileforward-"); @@ -23,7 +23,6 @@ const checkForIconExistence = (guild: Guild) => { if (!guild.icon) return false; return true; }; -const isDM = (channel: Channel) => channel.flags === 1; export default definePlugin({ name: "MoreForwardMeta",