From 578bc0adde352b990001ac1c96dcc7f11dc0be40 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:59:59 +0700 Subject: [PATCH] Docs(RPC): Update Spotify RPC example --- Document/RichPresence.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Document/RichPresence.md b/Document/RichPresence.md index f02363d..0a679a3 100644 --- a/Document/RichPresence.md +++ b/Document/RichPresence.md @@ -41,16 +41,17 @@ Rich Presence with Spotify ```js const r = new Discord.SpotifyRPC(client) .setAssetsLargeImage("spotify:ab67616d00001e02768629f8bc5b39b68797d1bb") // Image ID - .setAssetsSmallImage("spotify:ab6761610000f178049d8aeae802c96c8208f3b7") - .setState('Yunomi, Kizuna AI') - .setDetails('ロボットハート') + .setAssetsSmallImage("spotify:ab6761610000f178049d8aeae802c96c8208f3b7") // Image ID + .setAssetsLargeText('未来茶屋 (vol.1)') // Album Name + .setState('Yunomi; Kizuna AI') // Author + .setDetails('ロボットハート') // Song name .setStartTimestamp(Date.now()) .setEndTimestamp(Date.now() + 1_000 * (2 * 60 + 56)) // Song length = 2m56s .setSongId('667eE4CFfNtJloC6Lvmgrx'); // Song ID client.user.setActivity(r.toJSON()); ``` - - + +