2022-10-21 19:17:06 -04:00
|
|
|
/*
|
|
|
|
* Vencord, a modification for Discord's desktop app
|
|
|
|
* Copyright (c) 2022 Vendicated and contributors
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2022-10-23 17:23:52 -04:00
|
|
|
import gitHash from "~git-hash";
|
|
|
|
import gitRemote from "~git-remote";
|
|
|
|
|
2023-05-05 19:36:00 -04:00
|
|
|
export {
|
|
|
|
gitHash,
|
|
|
|
gitRemote
|
|
|
|
};
|
|
|
|
|
2022-08-28 20:25:27 -04:00
|
|
|
export const WEBPACK_CHUNK = "webpackChunkdiscord_app";
|
2022-09-16 16:59:34 -04:00
|
|
|
export const REACT_GLOBAL = "Vencord.Webpack.Common.React";
|
2022-10-23 17:23:52 -04:00
|
|
|
export const VENCORD_USER_AGENT = `Vencord/${gitHash}${gitRemote ? ` (https://github.com/${gitRemote})` : ""}`;
|
2023-02-27 20:40:45 -05:00
|
|
|
export const SUPPORT_CHANNEL_ID = "1026515880080842772";
|
2022-09-30 20:27:28 -04:00
|
|
|
|
2023-05-22 19:55:39 -04:00
|
|
|
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
|
|
|
|
*/
|
2022-12-22 12:04:37 -05:00
|
|
|
export const Devs = /* #__PURE__*/ Object.freeze({
|
2022-09-30 20:27:28 -04:00
|
|
|
Ven: {
|
|
|
|
name: "Vendicated",
|
|
|
|
id: 343383572805058560n
|
|
|
|
},
|
|
|
|
Arjix: {
|
|
|
|
name: "ArjixWasTaken",
|
|
|
|
id: 674710789138939916n
|
|
|
|
},
|
|
|
|
Cyn: {
|
|
|
|
name: "Cynosphere",
|
|
|
|
id: 150745989836308480n
|
|
|
|
},
|
|
|
|
Megu: {
|
|
|
|
name: "Megumin",
|
|
|
|
id: 545581357812678656n
|
2022-09-30 22:23:41 -04:00
|
|
|
},
|
|
|
|
botato: {
|
|
|
|
name: "botato",
|
|
|
|
id: 440990343899643943n
|
2022-10-03 14:43:25 -04:00
|
|
|
},
|
|
|
|
obscurity: {
|
|
|
|
name: "obscurity",
|
|
|
|
id: 336678828233588736n,
|
2022-10-03 20:36:02 -04:00
|
|
|
},
|
|
|
|
rushii: {
|
|
|
|
name: "rushii",
|
|
|
|
id: 295190422244950017n
|
2022-10-04 15:38:38 -04:00
|
|
|
},
|
|
|
|
Glitch: {
|
|
|
|
name: "Glitchy",
|
|
|
|
id: 269567451199569920n
|
2022-10-10 16:45:54 -04:00
|
|
|
},
|
|
|
|
Samu: {
|
|
|
|
name: "Samu",
|
2022-10-10 18:20:27 -04:00
|
|
|
id: 702973430449832038n,
|
|
|
|
},
|
|
|
|
Animal: {
|
|
|
|
name: "Animal",
|
|
|
|
id: 118437263754395652n
|
2022-10-14 07:21:44 -04:00
|
|
|
},
|
|
|
|
MaiKokain: {
|
|
|
|
name: "Mai",
|
|
|
|
id: 722647978577363026n
|
2022-10-16 17:25:27 -04:00
|
|
|
},
|
|
|
|
echo: {
|
|
|
|
name: "ECHO",
|
|
|
|
id: 712639419785412668n
|
|
|
|
},
|
2022-10-19 18:53:09 -04:00
|
|
|
katlyn: {
|
|
|
|
name: "katlyn",
|
|
|
|
id: 250322741406859265n
|
2022-10-20 01:48:46 -04:00
|
|
|
},
|
2022-10-23 08:19:53 -04:00
|
|
|
nea: {
|
|
|
|
name: "nea",
|
|
|
|
id: 310702108997320705n,
|
|
|
|
},
|
2022-10-20 01:48:46 -04:00
|
|
|
Nuckyz: {
|
|
|
|
name: "Nuckyz",
|
|
|
|
id: 235834946571337729n
|
2022-10-25 04:53:06 -04:00
|
|
|
},
|
|
|
|
D3SOX: {
|
|
|
|
name: "D3SOX",
|
|
|
|
id: 201052085641281538n
|
2022-10-31 21:19:07 -04:00
|
|
|
},
|
|
|
|
Nickyux: {
|
|
|
|
name: "Nickyux",
|
|
|
|
id: 427146305651998721n
|
2022-11-11 17:50:09 -05:00
|
|
|
},
|
2022-11-15 18:40:46 -05:00
|
|
|
mantikafasi: {
|
|
|
|
name: "mantikafasi",
|
|
|
|
id: 287555395151593473n
|
|
|
|
},
|
2022-11-11 17:50:09 -05:00
|
|
|
Xinto: {
|
|
|
|
name: "Xinto",
|
|
|
|
id: 423915768191647755n
|
|
|
|
},
|
|
|
|
JacobTm: {
|
|
|
|
name: "Jacob.Tm",
|
|
|
|
id: 302872992097107991n
|
|
|
|
},
|
|
|
|
DustyAngel47: {
|
|
|
|
name: "DustyAngel47",
|
|
|
|
id: 714583473804935238n
|
|
|
|
},
|
|
|
|
BanTheNons: {
|
|
|
|
name: "BanTheNons",
|
|
|
|
id: 460478012794863637n
|
|
|
|
},
|
|
|
|
BigDuck: {
|
|
|
|
name: "BigDuck",
|
|
|
|
id: 1024588272623681609n
|
|
|
|
},
|
|
|
|
AverageReactEnjoyer: {
|
|
|
|
name: "Average React Enjoyer",
|
|
|
|
id: 1004904120056029256n
|
|
|
|
},
|
|
|
|
adryd: {
|
|
|
|
name: "adryd",
|
|
|
|
id: 0n
|
|
|
|
},
|
|
|
|
Tyman: {
|
|
|
|
name: "Tyman",
|
|
|
|
id: 487443883127472129n
|
|
|
|
},
|
|
|
|
afn: {
|
|
|
|
name: "afn",
|
|
|
|
id: 420043923822608384n
|
|
|
|
},
|
|
|
|
KraXen72: {
|
|
|
|
name: "KraXen72",
|
|
|
|
id: 379304073515499530n
|
2022-11-19 08:54:48 -05:00
|
|
|
},
|
|
|
|
kemo: {
|
|
|
|
name: "kemo",
|
|
|
|
id: 299693897859465228n
|
2022-11-19 12:40:52 -05:00
|
|
|
},
|
|
|
|
dzshn: {
|
|
|
|
name: "dzshn",
|
|
|
|
id: 310449948011528192n
|
2022-11-20 08:31:00 -05:00
|
|
|
},
|
|
|
|
Ducko: {
|
|
|
|
name: "Ducko",
|
|
|
|
id: 506482395269169153n
|
2022-11-23 08:30:59 -05:00
|
|
|
},
|
|
|
|
jewdev: {
|
|
|
|
name: "jewdev",
|
|
|
|
id: 222369866529636353n
|
2022-11-23 13:56:20 -05:00
|
|
|
},
|
|
|
|
Luna: {
|
|
|
|
name: "Luny",
|
|
|
|
id: 821472922140803112n
|
2022-12-02 10:38:52 -05:00
|
|
|
},
|
2022-12-02 10:43:37 -05:00
|
|
|
Vap: {
|
|
|
|
name: "Vap0r1ze",
|
|
|
|
id: 454072114492866560n
|
|
|
|
},
|
2022-12-02 10:38:52 -05:00
|
|
|
KingFish: {
|
|
|
|
name: "King Fish",
|
|
|
|
id: 499400512559382538n
|
2022-12-02 10:43:37 -05:00
|
|
|
},
|
2022-12-03 17:42:18 -05:00
|
|
|
Commandtechno: {
|
|
|
|
name: "Commandtechno",
|
|
|
|
id: 296776625432035328n,
|
|
|
|
},
|
2022-12-14 17:44:58 -05:00
|
|
|
TheSun: {
|
|
|
|
name: "ActuallyTheSun",
|
|
|
|
id: 406028027768733696n
|
|
|
|
},
|
2022-12-15 09:05:44 -05:00
|
|
|
axyie: {
|
|
|
|
name: "'ax",
|
|
|
|
id: 273562710745284628n,
|
|
|
|
},
|
2022-12-22 11:42:54 -05:00
|
|
|
pointy: {
|
|
|
|
name: "pointy",
|
|
|
|
id: 99914384989519872n
|
2023-01-07 16:52:55 -05:00
|
|
|
},
|
|
|
|
SammCheese: {
|
|
|
|
name: "Samm-Cheese",
|
|
|
|
id: 372148345894076416n
|
2023-01-11 20:55:02 -05:00
|
|
|
},
|
|
|
|
zt: {
|
|
|
|
name: "zt",
|
|
|
|
id: 289556910426816513n
|
2023-01-18 17:47:40 -05:00
|
|
|
},
|
|
|
|
captain: {
|
|
|
|
name: "Captain",
|
|
|
|
id: 347366054806159360n
|
2023-02-01 07:38:02 -05:00
|
|
|
},
|
2023-03-31 01:07:35 -04:00
|
|
|
nick: {
|
|
|
|
name: "nick",
|
2023-05-22 19:55:39 -04:00
|
|
|
id: 347884694408265729n,
|
|
|
|
badge: false
|
2023-03-31 01:07:35 -04:00
|
|
|
},
|
2023-02-01 07:38:02 -05:00
|
|
|
whqwert: {
|
|
|
|
name: "whqwert",
|
|
|
|
id: 586239091520176128n
|
2023-02-15 19:46:14 -05:00
|
|
|
},
|
|
|
|
lewisakura: {
|
|
|
|
name: "lewisakura",
|
|
|
|
id: 96269247411400704n
|
2023-02-28 17:13:49 -05:00
|
|
|
},
|
2023-03-24 23:00:27 -04:00
|
|
|
RuiNtD: {
|
|
|
|
name: "RuiNtD",
|
|
|
|
id: 157917665162297344n
|
|
|
|
},
|
2023-03-24 22:54:20 -04:00
|
|
|
hunt: {
|
|
|
|
name: "hunt-g",
|
|
|
|
id: 222800179697287168n
|
|
|
|
},
|
2023-02-28 17:13:49 -05:00
|
|
|
cloudburst: {
|
|
|
|
name: "cloudburst",
|
|
|
|
id: 892128204150685769n
|
2023-03-24 21:30:24 -04:00
|
|
|
},
|
2023-03-24 22:37:29 -04:00
|
|
|
Aria: {
|
|
|
|
name: "Syncxv",
|
|
|
|
id: 549244932213309442n,
|
|
|
|
},
|
2023-03-24 21:30:24 -04:00
|
|
|
TheKodeToad: {
|
|
|
|
name: "TheKodeToad",
|
|
|
|
id: 706152404072267788n
|
2023-03-28 12:43:45 -04:00
|
|
|
},
|
2023-04-05 21:22:54 -04:00
|
|
|
LordElias: {
|
|
|
|
name: "LordElias",
|
|
|
|
id: 319460781567639554n
|
|
|
|
},
|
2023-04-02 11:43:06 -04:00
|
|
|
juby: {
|
|
|
|
name: "Juby210",
|
|
|
|
id: 324622488644616195n
|
|
|
|
},
|
2023-04-02 10:12:19 -04:00
|
|
|
Alyxia: {
|
|
|
|
name: "Alyxia Sother",
|
|
|
|
id: 952185386350829688n
|
|
|
|
},
|
|
|
|
Remty: {
|
|
|
|
name: "Remty",
|
|
|
|
id: 335055032204656642n
|
|
|
|
},
|
2023-03-28 12:43:45 -04:00
|
|
|
skyevg: {
|
|
|
|
name: "skyevg",
|
|
|
|
id: 1090310844283363348n
|
2023-04-05 17:01:11 -04:00
|
|
|
},
|
|
|
|
Dziurwa: {
|
|
|
|
name: "Dziurwa",
|
2023-07-13 19:12:07 -04:00
|
|
|
id: 1034579679526526976n
|
2023-04-05 21:02:53 -04:00
|
|
|
},
|
|
|
|
AutumnVN: {
|
|
|
|
name: "AutumnVN",
|
|
|
|
id: 393694671383166998n
|
2023-04-09 00:55:04 -04:00
|
|
|
},
|
|
|
|
pylix: {
|
|
|
|
name: "pylix",
|
|
|
|
id: 492949202121261067n
|
2023-04-14 20:26:46 -04:00
|
|
|
},
|
2023-04-14 22:42:18 -04:00
|
|
|
Tyler: {
|
|
|
|
name: "\\\\GGTyler\\\\",
|
|
|
|
id: 143117463788191746n
|
|
|
|
},
|
2023-04-14 20:31:36 -04:00
|
|
|
RyanCaoDev: {
|
|
|
|
name: "RyanCaoDev",
|
|
|
|
id: 952235800110694471n,
|
|
|
|
},
|
2023-04-14 20:26:46 -04:00
|
|
|
Strencher: {
|
|
|
|
name: "Strencher",
|
|
|
|
id: 415849376598982656n
|
2023-04-14 20:31:36 -04:00
|
|
|
},
|
2023-04-15 01:10:03 -04:00
|
|
|
FieryFlames: {
|
|
|
|
name: "Fiery",
|
|
|
|
id: 890228870559698955n
|
2023-04-23 19:42:38 -04:00
|
|
|
},
|
|
|
|
KannaDev: {
|
|
|
|
name: "Kanna",
|
|
|
|
id: 317728561106518019n
|
2023-04-27 22:03:38 -04:00
|
|
|
},
|
|
|
|
carince: {
|
|
|
|
name: "carince",
|
|
|
|
id: 818323528755314698n
|
2023-05-11 20:58:53 -04:00
|
|
|
},
|
2023-05-22 21:13:21 -04:00
|
|
|
PandaNinjas: {
|
|
|
|
name: "PandaNinjas",
|
|
|
|
id: 455128749071925248n
|
|
|
|
},
|
2023-05-11 20:58:53 -04:00
|
|
|
CatNoir: {
|
|
|
|
name: "CatNoir",
|
|
|
|
id: 260371016348336128n
|
2023-05-13 20:01:10 -04:00
|
|
|
},
|
|
|
|
outfoxxed: {
|
|
|
|
name: "outfoxxed",
|
|
|
|
id: 837425748435796060n
|
|
|
|
},
|
2023-05-22 21:32:27 -04:00
|
|
|
UwUDev: {
|
|
|
|
name: "UwU",
|
|
|
|
id: 691413039156690994n,
|
|
|
|
},
|
2023-05-31 11:41:06 -04:00
|
|
|
amia: {
|
|
|
|
name: "amia",
|
|
|
|
id: 142007603549962240n
|
|
|
|
},
|
2023-06-16 13:35:50 -04:00
|
|
|
phil: {
|
|
|
|
name: "phil",
|
|
|
|
id: 305288513941667851n
|
|
|
|
},
|
2023-06-09 15:48:18 -04:00
|
|
|
ImLvna: {
|
|
|
|
name: "Luna <3",
|
|
|
|
id: 174200708818665472n
|
2023-06-12 19:05:04 -04:00
|
|
|
},
|
|
|
|
rad: {
|
|
|
|
name: "rad",
|
2023-07-13 19:12:07 -04:00
|
|
|
id: 610945092504780823n
|
2023-06-14 21:18:34 -04:00
|
|
|
},
|
2023-08-11 20:23:00 -04:00
|
|
|
AndrewDLO: {
|
|
|
|
name: "Andrew-DLO",
|
|
|
|
id: 434135504792059917n
|
|
|
|
},
|
2023-06-14 21:18:34 -04:00
|
|
|
HypedDomi: {
|
|
|
|
name: "HypedDomi",
|
|
|
|
id: 354191516979429376n
|
2023-08-09 20:17:49 -04:00
|
|
|
},
|
|
|
|
Rini: {
|
|
|
|
name: "Rini",
|
|
|
|
id: 1079479184478441643n
|
|
|
|
},
|
2023-08-25 08:24:58 -04:00
|
|
|
castdrian: {
|
|
|
|
name: "castdrian",
|
|
|
|
id: 224617799434108928n
|
|
|
|
},
|
2023-08-10 18:17:29 -04:00
|
|
|
Arrow: {
|
|
|
|
name: "arrow",
|
|
|
|
id: 958158495302176778n
|
|
|
|
},
|
2023-08-18 19:10:59 -04:00
|
|
|
bb010g: {
|
|
|
|
name: "bb010g",
|
|
|
|
id: 72791153467990016n,
|
|
|
|
},
|
2023-09-07 21:57:44 -04:00
|
|
|
Lumap: {
|
|
|
|
name: "lumap",
|
|
|
|
id: 635383782576357407n
|
|
|
|
},
|
2023-09-05 13:42:35 -04:00
|
|
|
Dolfies: {
|
|
|
|
name: "Dolfies",
|
|
|
|
id: 852892297661906993n,
|
|
|
|
},
|
2023-08-30 18:53:05 -04:00
|
|
|
RuukuLada: {
|
|
|
|
name: "RuukuLada",
|
|
|
|
id: 119705748346241027n,
|
2023-09-08 22:22:41 -04:00
|
|
|
},
|
|
|
|
blahajZip: {
|
|
|
|
name: "blahaj.zip",
|
|
|
|
id: 683954422241427471n,
|
2023-09-12 17:11:25 -04:00
|
|
|
},
|
|
|
|
archeruwu: {
|
|
|
|
name: "archer_uwu",
|
|
|
|
id: 160068695383736320n
|
2023-09-07 21:57:44 -04:00
|
|
|
}
|
2023-05-22 19:55:39 -04:00
|
|
|
} 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>;
|
2023-09-21 12:56:58 -04:00
|
|
|
|
|
|
|
export const IsFirefox = IS_EXTENSION && navigator.userAgent.toLowerCase().includes("firefox");
|