fix(RPC): Button invalid (ipc)

This commit is contained in:
March 7th 2022-07-23 19:24:43 +07:00
parent 18cf4c58da
commit 8edbf22e7c

View File

@ -460,7 +460,7 @@ https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Documents/RichP
obj.type = 0; obj.type = 0;
let buttonData = []; let buttonData = [];
if (obj.buttons) { 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; delete obj.metadata;
obj.buttons = buttonData; obj.buttons = buttonData;
} }