fix: RelationshipManager cache missing

This commit is contained in:
March 7th
2022-10-25 12:37:23 +07:00
parent 1c0aefd7ec
commit 0324e0f684
4 changed files with 31 additions and 14 deletions

View File

@@ -115,6 +115,12 @@ class DMChannel extends Channel {
* @returns {Promise<VoiceConnection>}
*/
call(options = {}) {
options = Object.assign(
{
ring: true,
},
options || {},
);
return new Promise((resolve, reject) => {
if (!this.client.options.patchVoice) {
reject(
@@ -124,7 +130,7 @@ class DMChannel extends Channel {
),
);
} else {
if (options?.ring) {
if (options.ring) {
this.client.api.channels(this.id).call.ring.post({
body: {
recipients: null,

View File

@@ -311,6 +311,12 @@ class PartialGroupDMChannel extends Channel {
* @returns {Promise<VoiceConnection>}
*/
call(options = {}) {
options = Object.assign(
{
ring: true,
},
options || {},
);
return new Promise((resolve, reject) => {
if (!this.client.options.patchVoice) {
reject(
@@ -320,7 +326,7 @@ class PartialGroupDMChannel extends Channel {
),
);
} else {
if (options?.ring) {
if (options.ring) {
this.client.api.channels(this.id).call.ring.post({
body: {
recipients: null,