From fa174ebd9e8a347f21fa2cc1e4403921e964208e Mon Sep 17 00:00:00 2001 From: Cinnamon <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 10 Jul 2022 01:17:09 +0700 Subject: [PATCH] fix(RichPresence): Wrong method (toDiscord) --- Document/RichPresence.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Document/RichPresence.md b/Document/RichPresence.md index 7fa56be..77ba2e3 100644 --- a/Document/RichPresence.md +++ b/Document/RichPresence.md @@ -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()); ``` @@ -121,4 +121,4 @@ const asset = await bot.application.fetchAssets(); - More: - - You can change the status 5 times every 20 seconds! \ No newline at end of file + - You can change the status 5 times every 20 seconds!