diff options
author | V <vendicated@riseup.net> | 2023-05-23 01:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 01:55:39 +0200 |
commit | 184c03b28e6df72f301f91862dc8bdfb5f074fcb (patch) | |
tree | a543a4e3c932d172e76d86365b590265dfa1b0ff /src/utils/constants.ts | |
parent | ec091a79591cf9619dd589102f5b338827b70ad8 (diff) | |
download | Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.gz Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.bz2 Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.zip |
PluginModal: Anonymise authors (#1176)
Diffstat (limited to 'src/utils/constants.ts')
-rw-r--r-- | src/utils/constants.ts | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 1c70470..9671ac3 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -29,7 +29,18 @@ export const REACT_GLOBAL = "Vencord.Webpack.Common.React"; export const VENCORD_USER_AGENT = `Vencord/${gitHash}${gitRemote ? ` (https://github.com/${gitRemote})` : ""}`; export const SUPPORT_CHANNEL_ID = "1026515880080842772"; -// Add yourself here if you made a plugin +export interface Dev { + name: string; + id: bigint; + badge?: boolean; +} + +/** + * If you made a plugin or substantial contribution, add yourself here. + * This object is used for the plugin author list, as well as to add a contributor badge to your profile. + * If you wish to stay fully anonymous, feel free to set ID to 0n. + * If you are fine with attribution but don't want the badge, add badge: false + */ export const Devs = /* #__PURE__*/ Object.freeze({ Ven: { name: "Vendicated", @@ -201,7 +212,8 @@ export const Devs = /* #__PURE__*/ Object.freeze({ }, nick: { name: "nick", - id: 347884694408265729n + id: 347884694408265729n, + badge: false }, whqwert: { name: "whqwert", @@ -295,4 +307,13 @@ export const Devs = /* #__PURE__*/ Object.freeze({ name: "outfoxxed", id: 837425748435796060n }, -}); +} satisfies Record<string, Dev>); + +// iife so #__PURE__ works correctly +export const DevsById = /* #__PURE__*/ (() => + Object.freeze(Object.fromEntries( + Object.entries(Devs) + .filter(d => d[1].id !== 0n) + .map(([_, v]) => [v.id, v] as const) + )) +)() as Record<string, Dev>; |