|
|
@ -7,12 +7,12 @@
|
|
|
|
import "./styles.css";
|
|
|
|
import "./styles.css";
|
|
|
|
|
|
|
|
|
|
|
|
import { classNameFactory } from "@api/Styles";
|
|
|
|
import { classNameFactory } from "@api/Styles";
|
|
|
|
import { getGuildRoles, openImageModal, openUserProfile } from "@utils/discord";
|
|
|
|
import { openImageModal, openUserProfile } from "@utils/discord";
|
|
|
|
import { classes } from "@utils/misc";
|
|
|
|
import { classes } from "@utils/misc";
|
|
|
|
import { ModalRoot, ModalSize, openModal } from "@utils/modal";
|
|
|
|
import { ModalRoot, ModalSize, openModal } from "@utils/modal";
|
|
|
|
import { useAwaiter } from "@utils/react";
|
|
|
|
import { useAwaiter } from "@utils/react";
|
|
|
|
import { findByPropsLazy, findExportedComponentLazy } from "@webpack";
|
|
|
|
import { findByPropsLazy, findExportedComponentLazy } from "@webpack";
|
|
|
|
import { FluxDispatcher, Forms, GuildChannelStore, GuildMemberStore, IconUtils, Parser, PresenceStore, RelationshipStore, ScrollerThin, SnowflakeUtils, TabBar, Timestamp, useEffect, UserStore, UserUtils, useState, useStateFromStores } from "@webpack/common";
|
|
|
|
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 { Guild, User } from "discord-types/general";
|
|
|
|
|
|
|
|
|
|
|
|
const IconClasses = findByPropsLazy("icon", "acronym", "childWrapper");
|
|
|
|
const IconClasses = findByPropsLazy("icon", "acronym", "childWrapper");
|
|
|
@ -172,7 +172,7 @@ function ServerInfoTab({ guild }: GuildProps) {
|
|
|
|
"Verification Level": ["None", "Low", "Medium", "High", "Highest"][guild.verificationLevel] || "?",
|
|
|
|
"Verification Level": ["None", "Low", "Medium", "High", "Highest"][guild.verificationLevel] || "?",
|
|
|
|
"Nitro Boosts": `${guild.premiumSubscriberCount ?? 0} (Level ${guild.premiumTier ?? 0})`,
|
|
|
|
"Nitro Boosts": `${guild.premiumSubscriberCount ?? 0} (Level ${guild.premiumTier ?? 0})`,
|
|
|
|
"Channels": GuildChannelStore.getChannels(guild.id)?.count - 1 || "?", // - null category
|
|
|
|
"Channels": GuildChannelStore.getChannels(guild.id)?.count - 1 || "?", // - null category
|
|
|
|
"Roles": Object.keys(getGuildRoles(guild.id)).length - 1, // - @everyone
|
|
|
|
"Roles": Object.keys(GuildStore.getRoles(guild.id)).length - 1, // - @everyone
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|