Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Sep 4, 2024
1 parent 35903c6 commit 509edf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/serverInfo/GuildInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { useAwaiter } from "@utils/react";
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
import { FluxDispatcher, Forms, GuildChannelStore, GuildMemberStore, GuildStore, IconUtils, Parser, PresenceStore, RelationshipStore, ScrollerThin, SnowflakeUtils, TabBar, Timestamp, useEffect, UserStore, UserUtils, useState, useStateFromStores } from "@webpack/common";
import { Guild, User } from "discord-types/general";
import { Settings } from "Vencord";

const IconClasses = findByPropsLazy("icon", "acronym", "childWrapper");
const FriendRow = findComponentByCodeLazy(".listName,discriminatorClass");
Expand Down Expand Up @@ -152,7 +151,7 @@ function Owner(guildId: string, owner: User) {

return (
<div className={cl("owner")}>
{!Settings.plugins.MentionAvatars.enabled && <img src={ownerAvatarUrl} alt="" onClick={() => openImageModal(ownerAvatarUrl)} />}
{!Vencord.Plugins.isPluginEnabled("MentionAvatars") && <img src={ownerAvatarUrl} alt="" onClick={() => openImageModal(ownerAvatarUrl)} />}
{Parser.parse(`<@${owner.id}>`)}
</div>
);
Expand Down

0 comments on commit 509edf4

Please sign in to comment.