mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix: pass force correctly (#7721)
This commit is contained in:
@@ -86,7 +86,7 @@ class DMChannel extends Channel {
|
|||||||
* @returns {Promise<DMChannel>}
|
* @returns {Promise<DMChannel>}
|
||||||
*/
|
*/
|
||||||
fetch(force = true) {
|
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>}
|
* @returns {Promise<DMChannel>}
|
||||||
*/
|
*/
|
||||||
createDM(force = false) {
|
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