You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i wonder why the large image won't showing up on my rpc
I tried to debug the code many times and the result is below, it seems that the set external image succeeded but the end is “undefined”
PS C:\Users\koinatsuko\OneDrive\Documents\VisualStudioCode\selfbot> node sample.js
xelxx23 is ready!
Setting external image for game: Shin Megami Tensei V: Vengeance
getExtendURL response: [
{
url: 'https://image.api.playstation.com/vulcan/ap/rnd/202402/0600/50ff1bbdf7f888123646c47e1d3cf658c00074d23d05c44c.png',
external_asset_path: 'external/57W3DWvplLR5gE3IEFji6lWG1fXXLDdu0wE3cvaYs-w/https/image.api.playstation.com/vulcan/ap/rnd/202402/0600/50ff1bbdf7f888123646c47e1d3cf658c00074d23d05c44c.png'
}
]
Setting large image with URL: external/57W3DWvplLR5gE3IEFji6lWG1fXXLDdu0wE3cvaYs-w/https/image.api.playstation.com/vulcan/ap/rnd/202402/0600/50ff1bbdf7f888123646c47e1d3cf658c00074d23d05c44c.png
undefined
Code sample
const{ Client, RichPresence }=require('discord.js-selfbot-v13');constfs=require('fs');constclient=newClient();constgameId='1251083724150407209';constsanitizedGameName='Shin Megami Tensei V: Vengeance';letimageSource=null;constimageUrl='https://image.api.playstation.com/vulcan/ap/rnd/202402/0600/50ff1bbdf7f888123646c47e1d3cf658c00074d23d05c44c.png';client.on('ready',async()=>{console.log(`${client.user.username} is ready!`);constexternalImageUrl=imageUrl;if(!externalImageUrl){console.log("Image URL not found, skipping image setup.".yellow);}else{console.log(`Setting external image for game: ${sanitizedGameName}`);}conststatus=newRichPresence(client).setApplicationId(gameId).setPlatform('ps4').setName(sanitizedGameName)if(externalImageUrl){constgetExtendURL=awaitRichPresence.getExternal(client,gameId,externalImageUrl);console.log("getExtendURL response: ",getExtendURL);if(getExtendURL&&getExtendURL[0]&&getExtendURL[0].external_asset_path){constexternalImagePath=getExtendURL[0].external_asset_path;console.log(`Setting large image with URL: ${externalImagePath}`);status.setAssetsLargeImage(externalImagePath);console.log(`Large Image from file set for Rich Presence!`.green);}else{console.log("Failed to retrieve external image path.".yellow);}}client.user.setPresence({activities: [status]});});client.login('my-token');
Which package has the bugs?
The core library
Issue description
Code sample
Package version
[email protected]
Node.js version
18.18.0
Operating system
Windows 11
Priority this issue should have
Low (slightly annoying)
Checklist
Additional Information
I want to know if there is something wrong from there or from myself (but before that it was fine and it worked)
The text was updated successfully, but these errors were encountered: