fix: ring always throw error
Expected "Content-Type" header to be one of {'application/json'}.
This commit is contained in:
parent
83f9800864
commit
f044898767
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user