From 8edbf22e7c3b53ad159148cffb64dc716959377d Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 23 Jul 2022 19:24:43 +0700 Subject: [PATCH] fix(RPC): Button invalid (ipc) --- src/structures/RichPresence.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/RichPresence.js b/src/structures/RichPresence.js index 9cb7aa4..bb8b66e 100644 --- a/src/structures/RichPresence.js +++ b/src/structures/RichPresence.js @@ -460,7 +460,7 @@ https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Documents/RichP obj.type = 0; let buttonData = []; if (obj.buttons) { - buttonData = obj.buttons.map((b, i) => ({ name: b, url: obj.metadata.button_urls[i] })); + buttonData = obj.buttons.map((b, i) => ({ label: b, url: obj.metadata.button_urls[i] })); delete obj.metadata; obj.buttons = buttonData; }