From d435e0a28e21e11b2bdc9c9e00a7ea8a702b225c Mon Sep 17 00:00:00 2001 From: Cooper Date: Tue, 23 Jul 2024 15:42:55 -0500 Subject: [PATCH] feat: add Epic Games profile support --- src/plugins/extraConnectionLinks/README.md | 2 +- src/plugins/extraConnectionLinks/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/extraConnectionLinks/README.md b/src/plugins/extraConnectionLinks/README.md index f182dd7e8..61668550b 100644 --- a/src/plugins/extraConnectionLinks/README.md +++ b/src/plugins/extraConnectionLinks/README.md @@ -11,11 +11,11 @@ Allows you to open more connections in browser! ### Supported Platforms * Xbox * Roblox +* Epic Games ### Planned Platforms * None as of currently ### Platforms that will never be supported * Riot Games/League of Legends (Nothing made by Riot Games to view profiles online) * Battle.net (Nothing made by Blizzard to view profiles online) * Bungie.net (Nothing made by Bungie.net to view profiles online) -* Epic Games (Nothing made by Epic Games to view profiles online) * PSN/PlayStation Network (Sony built a service called My PlayStation, but removed it for unknown reasons in 2021) diff --git a/src/plugins/extraConnectionLinks/index.ts b/src/plugins/extraConnectionLinks/index.ts index a830c5bcf..3f1821795 100644 --- a/src/plugins/extraConnectionLinks/index.ts +++ b/src/plugins/extraConnectionLinks/index.ts @@ -10,7 +10,7 @@ import definePlugin from "@utils/types"; /** * platforms that dont open natively * ! riot and leage (can't view profiles) - * ! epic (can't view profiles) + * * epic (Added) * ! psn (can't view profiles after sony removed My PlayStation) * * roblox (Added) * * xbox (Added) @@ -23,16 +23,19 @@ import definePlugin from "@utils/types"; enum contypes { Roblox = "Roblox", Xbox = "Xbox", + Epic = "Epic" } const uris = { // name (what shows up on connection on ui), id (an identifier thing) [contypes.Roblox]: "https://www.roblox.com/users/${id}/profile", [contypes.Xbox]: "https://www.xbox.com/play/user/${name}", + [contypes.Epic]: "https://store.epicgames.com/en-US/u/${id}", }; const serviceNames = { // What the name part in the discord code calls it. [contypes.Roblox]: "Roblox", [contypes.Xbox]: "Xbox", + [contypes.Epic]: "Epic Games", }; export default definePlugin({