mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix: pass force correctly (#7721)
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user