From f04489876738644dd724516bf7fb381be4f26fcf Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:38:06 +0700 Subject: [PATCH] fix: ring always throw error Expected "Content-Type" header to be one of {'application/json'}. --- src/structures/DMChannel.js | 2 +- src/structures/PartialGroupDMChannel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/DMChannel.js b/src/structures/DMChannel.js index f798682..279b3a1 100644 --- a/src/structures/DMChannel.js +++ b/src/structures/DMChannel.js @@ -132,7 +132,7 @@ class DMChannel extends Channel { } else { if (options.ring) { this.client.api.channels(this.id).call.ring.post({ - body: { + data: { recipients: null, }, }); diff --git a/src/structures/PartialGroupDMChannel.js b/src/structures/PartialGroupDMChannel.js index fedcbc8..d09299a 100644 --- a/src/structures/PartialGroupDMChannel.js +++ b/src/structures/PartialGroupDMChannel.js @@ -328,7 +328,7 @@ class PartialGroupDMChannel extends Channel { } else { if (options.ring) { this.client.api.channels(this.id).call.ring.post({ - body: { + data: { recipients: null, }, });