mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
feat: add Epic Games profile support
This commit is contained in:
parent
7c27cec573
commit
d435e0a28e
2 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue