feat: new RPC

This commit is contained in:
Elysia
2024-01-31 20:54:42 +07:00
parent 585b71a1af
commit 987aa3a1fb
8 changed files with 870 additions and 968 deletions

View File

@@ -8,7 +8,7 @@ client.on('ready', async () => {
'367827983903490050',
'https://assets.ppy.sh/beatmaps/1550633/covers/list.jpg', // Required if the image you use is not in Discord
);
const status = new RichPresence()
const status = new RichPresence(client)
.setApplicationId('367827983903490050')
.setType('PLAYING')
.setURL('https://www.youtube.com/watch?v=5icFcPkVzMg')
@@ -26,7 +26,7 @@ client.on('ready', async () => {
.setAssetsSmallText('click the circles')
.addButton('Beatmap', 'https://osu.ppy.sh/beatmapsets/1391659#osu/2873429');
// Custom Status
const custom = new CustomStatus().setEmoji('😋').setState('yum');
const custom = new CustomStatus(client).setEmoji('😋').setState('yum');
// Spotify
const spotify = new SpotifyRPC(client)
.setAssetsLargeImage('spotify:ab67616d00001e02768629f8bc5b39b68797d1bb') // Image ID