fix: RelationshipManager cache missing
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user