mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
Equicord Team Updates
This commit is contained in:
parent
cfa52b5569
commit
48d4f3ad0d
6 changed files with 73 additions and 14 deletions
|
@ -708,6 +708,21 @@ export const SuncordDevs = /* #__PURE__*/ Object.freeze({
|
|||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
export const EquicordTeam = /* #__PURE__*/ Object.freeze({
|
||||
thororen: {
|
||||
name: "thororen",
|
||||
id: 848339671629299742n,
|
||||
},
|
||||
KrystalSkull: {
|
||||
name: "krystalskullofficial",
|
||||
id: 929208515883569182n,
|
||||
},
|
||||
Naibuu: {
|
||||
name: "hs50",
|
||||
id: 1120045713867423835n,
|
||||
},
|
||||
} satisfies Record<string, Dev>);
|
||||
|
||||
// iife so #__PURE__ works correctly
|
||||
export const VencordDevsById = /* #__PURE__*/ (() =>
|
||||
Object.freeze(Object.fromEntries(
|
||||
|
@ -732,3 +747,11 @@ export const SuncordDevsById = /* #__PURE__*/ (() =>
|
|||
.map(([_, v]) => [v.id, v] as const)
|
||||
))
|
||||
)() as Record<string, Dev>;
|
||||
|
||||
export const EquicordTeamById = /* #__PURE__*/ (() =>
|
||||
Object.freeze(Object.fromEntries(
|
||||
Object.entries(EquicordDevs)
|
||||
.filter(d => d[1].id !== 0n)
|
||||
.map(([_, v]) => [v.id, v] as const)
|
||||
))
|
||||
)() as Record<string, Dev>;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import { Clipboard, Toasts } from "@webpack/common";
|
||||
|
||||
import { EquicordDevsById, SuncordDevsById, VencordDevsById } from "./constants";
|
||||
import { EquicordDevsById, EquicordTeamById, SuncordDevsById, VencordDevsById } from "./constants";
|
||||
|
||||
/**
|
||||
* Calls .join(" ") on the arguments
|
||||
|
@ -96,6 +96,7 @@ export const isMobile = navigator.userAgent.includes("Mobi");
|
|||
|
||||
export const isPluginDev = (id: string) => Object.hasOwn(VencordDevsById, id);
|
||||
export const isEquicordPluginDev = (id: string) => Object.hasOwn(EquicordDevsById, id);
|
||||
export const isEquicordTeamDev = (id: string) => Object.hasOwn(EquicordTeamById, id);
|
||||
export const isSuncordPluginDev = (id: string) => Object.hasOwn(SuncordDevsById, id);
|
||||
|
||||
export function pluralise(amount: number, singular: string, plural = singular + "s") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue