Adding feature

voiceState.getPreview(): Return URL Image Stream .-.
This commit is contained in:
March 7th
2022-04-25 19:28:45 +07:00
parent f3926f2e37
commit 817aa690ff
5 changed files with 32 additions and 2 deletions

View File

@@ -63,8 +63,8 @@ class APIRequest {
}
headers = Object.assign(headers, body.getHeaders());
// eslint-disable-next-line eqeqeq
} else if (this.options.data != null) {
body = JSON.stringify(this.options.data);
} else if (this.options.data != null || this.options.usingApplicationJson) {
body = this.options.data ? JSON.stringify(this.options.data) : undefined;
headers['Content-Type'] = 'application/json';
} else if (this.options.body != null) {
body = new FormData();