From f60bc1bc71ff9702637bb2aa6cdaa35fa7e01f6f Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:37:56 +0700 Subject: [PATCH] append in slash command comming soon --- DOCUMENT.md | 10 +++++----- src/rest/APIRequest.js | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DOCUMENT.md b/DOCUMENT.md index 305a114..4278340 100644 --- a/DOCUMENT.md +++ b/DOCUMENT.md @@ -1,5 +1,5 @@ # Discord.js Selfbot v13 -- Install: npm i discord.js-selfbot-v13@lasest +- Install: ```npm i discord.js-selfbot-v13@latest``` ## Client Settings
@@ -7,8 +7,8 @@ ```js new Client({ - checkUpdate: true, // Check Package Update (Ready) [Enable Deafult] - readyStatus: false, // Set status sync from Account (Ready) [Disable Default] + checkUpdate: true, // Check Package Update (Bot Ready) [Enable Deafult] + readyStatus: false, // Set Custom Status sync from Account (Bot Ready) [Disable Default] }) ```
@@ -151,7 +151,7 @@ guild.setPosition(position, type, folderID); ``` Response ```js -Guild +Guild {} ``` @@ -165,7 +165,7 @@ Custom Status const RichPresence = require('discord-rpc-contructor'); // My module :)) const custom = new RichPresence.CustomStatus() .setUnicodeEmoji('🎮') // Set Unicode Emoji [Using one] - .setDiscordEmoji({ // Set Custom Emoji (Nitro) [Using one] + .setDiscordEmoji({ // Set Custom Emoji (Nitro Classic / Boost) [Using one] name: 'nom', id: '737373737373737373', animated: false, diff --git a/src/rest/APIRequest.js b/src/rest/APIRequest.js index d3b5d5e..d560008 100644 --- a/src/rest/APIRequest.js +++ b/src/rest/APIRequest.js @@ -66,6 +66,9 @@ class APIRequest { } else if (this.options.data != null) { body = JSON.stringify(this.options.data); headers['Content-Type'] = 'application/json'; + } else if (this.options.body != null) { + body.append('payload_json', JSON.stringify(this.options.body)); + headers = Object.assign(headers, body.getHeaders()); } const controller = new AbortController();