fix: ring always throw error

Expected "Content-Type" header to be one of {'application/json'}.
This commit is contained in:
March 7th 2022-10-26 18:38:06 +07:00
parent 83f9800864
commit f044898767
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ class DMChannel extends Channel {
} else { } else {
if (options.ring) { if (options.ring) {
this.client.api.channels(this.id).call.ring.post({ this.client.api.channels(this.id).call.ring.post({
body: { data: {
recipients: null, recipients: null,
}, },
}); });

View File

@ -328,7 +328,7 @@ class PartialGroupDMChannel extends Channel {
} else { } else {
if (options.ring) { if (options.ring) {
this.client.api.channels(this.id).call.ring.post({ this.client.api.channels(this.id).call.ring.post({
body: { data: {
recipients: null, recipients: null,
}, },
}); });