PlatformSpoofer: vcicon just works now 🤷

This commit is contained in:
thororen1234 2026-03-05 19:50:21 -05:00
parent fbaf346bb6
commit b7d7a6fda9
No known key found for this signature in database

View file

@ -67,13 +67,6 @@ export default definePlugin({
replace: "$1{...$2,...$self.getPlatform(true)},presence"
}
},
{
find: "#{intl::POPOUT_STAY_ON_TOP}),icon:",
replacement: {
match: /(?<=CallTile.{0,15}\.memo\((\i)=>\{)/,
replace: "$1.platform = $self.getPlatform(false, $1?.participantUserId)?.vcIcon || $1?.platform;"
}
},
{
find: '("AppSkeleton");',
replacement: {
@ -88,19 +81,19 @@ export default definePlugin({
if (bypass || userId === UserStore.getCurrentUser().id) {
switch (platform) {
case "desktop":
return { browser: "Discord Client", vcIcon: 0 };
return { browser: "Discord Client" };
case "web":
return { browser: "Discord Web", vcIcon: 0 };
return { browser: "Discord Web" };
case "ios":
return { browser: "Discord iOS", vcIcon: 1 };
return { browser: "Discord iOS" };
case "android":
return { browser: "Discord Android", vcIcon: 1 };
return { browser: "Discord Android" };
case "xbox":
return { browser: "Discord Embedded", vcIcon: 2 };
return { browser: "Discord Embedded" };
case "playstation":
return { browser: "Discord Embedded", vcIcon: 3 };
return { browser: "Discord Embedded" };
case "vr":
return { browser: "Discord VR", vcIcon: 4 };
return { browser: "Discord VR" };
default:
return null;
}