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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ const r = new Discord.RichPresence()
.setAssetsSmallImage('895316294222635008') .setAssetsSmallImage('895316294222635008')
.setAssetsSmallText('Bot') .setAssetsSmallText('Bot')
.addButton('name', 'https://link.com/') .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'> <img src='https://cdn.discordapp.com/attachments/820557032016969751/995301015257616414/unknown.png'>