fix: pass force correctly (#7721)

This commit is contained in:
Jiralite
2022-04-05 11:26:21 +01:00
committed by GitHub
parent 3b3dabf3da
commit 402514ff32
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class DMChannel extends Channel {
* @returns {Promise<DMChannel>}
*/
fetch(force = true) {
return this.client.users.createDM(this.recipientId, force);
return this.client.users.createDM(this.recipientId, { force });
}
/**

View File

@@ -210,7 +210,7 @@ class User extends Base {
* @returns {Promise<DMChannel>}
*/
createDM(force = false) {
return this.client.users.createDM(this.id, force);
return this.client.users.createDM(this.id, { force });
}
/**