append in slash command

comming soon
This commit is contained in:
March 7th
2022-03-25 12:37:56 +07:00
parent 404731d606
commit f60bc1bc71
2 changed files with 8 additions and 5 deletions

View File

@@ -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();