/* * Vencord, a Discord client mod * Copyright (c) 2025 Vendicated and contributors * SPDX-License-Identifier: GPL-3.0-or-later */ import "./style.css"; import { classNameFactory } from "@api/Styles"; 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"; const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:v,fetchGuildProfile:O,fetchStatus:I}"); const cl = classNameFactory("vc-serverprofileforward-"); const ArrowSvg = () => ; const checkForIconExistence = (guild: Guild) => { if (!guild) return false; if (!guild.icon) return false; return true; }; const isDM = (channel: Channel) => channel.flags === 1; export default definePlugin({ name: "MoreForwardMeta", description: "Show server profile under forwarded messages (if available) and always show time", authors: [Devs.nin0dev], ForwardFooter(message: any) { const { guild_id, channel_id, message_id } = message.message.messageReference; const guild = useStateFromStores([GuildStore], () => GuildStore.getGuild(guild_id)); const channel = useStateFromStores([ChannelStore], () => ChannelStore.getChannel(channel_id)); return