Update RichPresence.md

This commit is contained in:
Elysia 2023-01-29 15:50:28 +07:00 committed by GitHub
parent 107f9c564b
commit 5c8c4289b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,7 @@ const client = new Client({
<strong>Custom Status</strong> <strong>Custom Status</strong>
```js ```js
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.CustomStatus() const r = new Discord.CustomStatus()
.setState('Discord') .setState('Discord')
.setEmoji('💬') .setEmoji('💬')
@ -20,6 +21,7 @@ client.user.setActivity(r);
Rich Presence [Custom] Rich Presence [Custom]
```js ```js
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.RichPresence() const r = new Discord.RichPresence()
.setApplicationId('817229550684471297') .setApplicationId('817229550684471297')
.setType('STREAMING') .setType('STREAMING')
@ -44,6 +46,7 @@ client.user.setActivity(r);
Rich Presence with Spotify Rich Presence with Spotify
```js ```js
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.SpotifyRPC(client) const r = new Discord.SpotifyRPC(client)
.setAssetsLargeImage("spotify:ab67616d00001e02768629f8bc5b39b68797d1bb") // Image ID .setAssetsLargeImage("spotify:ab67616d00001e02768629f8bc5b39b68797d1bb") // Image ID
.setAssetsSmallImage("spotify:ab6761610000f178049d8aeae802c96c8208f3b7") // Image ID .setAssetsSmallImage("spotify:ab6761610000f178049d8aeae802c96c8208f3b7") // Image ID
@ -91,6 +94,7 @@ Demo URL: https://cdn.discordapp.com/attachments/820557032016969751/991172011483
+ Step 4: + Step 4:
```js ```js
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.RichPresence() const r = new Discord.RichPresence()
.setApplicationId('817229550684471297') .setApplicationId('817229550684471297')
.setType('PLAYING') .setType('PLAYING')
@ -115,6 +119,7 @@ client.user.setActivity(r);
## Method 2: (Discord URL, 2.3.78+) ## Method 2: (Discord URL, 2.3.78+)
```js ```js
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.RichPresence() const r = new Discord.RichPresence()
.setApplicationId('817229550684471297') .setApplicationId('817229550684471297')
.setType('PLAYING') .setType('PLAYING')
@ -141,6 +146,7 @@ client.user.setActivity(r);
## Method 3 (Custom URL, 2.3.78+) ## Method 3 (Custom URL, 2.3.78+)
```js ```js
const Discord = require('discord.js-selfbot-v13');
const rpc = new Discord.RichPresence(); const rpc = new Discord.RichPresence();
const imageSet = await Discord.RichPresence.getExternal(client, '820344593357996092', 'https://musedash.moe/covers/papipupipupipa_cover.hash.93ae31d41.png', 'https://musedash.moe/covers/lights_of_muse_cover.hash.1c18e1e22.png') const imageSet = await Discord.RichPresence.getExternal(client, '820344593357996092', 'https://musedash.moe/covers/papipupipupipa_cover.hash.93ae31d41.png', 'https://musedash.moe/covers/lights_of_muse_cover.hash.1c18e1e22.png')
rpc rpc