fix(RichPresence): Wrong method (toDiscord)

This commit is contained in:
Cinnamon
2022-07-10 01:17:09 +07:00
committed by GitHub
parent 2d78b2437e
commit fa174ebd9e

View File

@@ -100,7 +100,7 @@ const r = new Discord.RichPresence()
.setAssetsSmallImage('895316294222635008')
.setAssetsSmallText('Bot')
.addButton('name', 'https://link.com/')
client.user.setActivity(r.toDiscord().game);
client.user.setActivity(r.toJSON());
```
<img src='https://cdn.discordapp.com/attachments/820557032016969751/995301015257616414/unknown.png'>
@@ -121,4 +121,4 @@ const asset = await bot.application.fetchAssets();
<img src='https://cdn.discordapp.com/attachments/820557032016969751/995307606115618926/unknown.png'>
- More:
- You can change the status 5 times every 20 seconds!
- You can change the status 5 times every 20 seconds!