1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

fix badges

This commit is contained in:
Vendicated 2024-04-24 05:27:14 +02:00 committed by Luna
parent 5bb9dbb1bb
commit 66b7a51c12
3 changed files with 11 additions and 3 deletions

View file

@ -65,7 +65,7 @@ export default definePlugin({
patches: [
/* Patch the badge list component on user profiles */
{
find: "Messages.PROFILE_USER_BADGES,role:",
find: 'id:"premium",',
replacement: [
{
match: /&&(\i)\.push\(\{id:"premium".+?\}\);/,

View file

@ -21,14 +21,14 @@ import { definePluginSettings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import definePlugin, { OptionType } from "@utils/types";
import { findByPropsLazy, findExportedComponentLazy } from "@webpack";
import { findByPropsLazy, findExportedComponentLazy, findStoreLazy } from "@webpack";
import { React, RestAPI, Tooltip } from "@webpack/common";
import { RenameButton } from "./components/RenameButton";
import { Session, SessionInfo } from "./types";
import { fetchNamesFromDataStore, getDefaultName, GetOsColor, GetPlatformIcon, savedSessionsCache, saveSessionsToDataStore } from "./utils";
const AuthSessionsStore = findByPropsLazy("getSessions");
const AuthSessionsStore = findStoreLazy("AuthSessionsStore");
const UserSettingsModal = findByPropsLazy("saveAccountChanges", "open");
const TimestampClasses = findByPropsLazy("timestampTooltip", "blockquoteContainer");

View file

@ -437,6 +437,14 @@ export const Devs = /* #__PURE__*/ Object.freeze({
Byron: {
name: "byeoon",
id: 1167275288036655133n
},
Kaitlyn: {
name: "kaitlyn",
id: 306158896630988801n
},
PolisanTheEasyNick: {
name: "Oleh Polisan",
id: 242305263313485825n
}
} satisfies Record<string, Dev>);