mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(Message): force fetching (#8047)
This commit is contained in:
@@ -835,7 +835,7 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
fetch(force = true) {
|
fetch(force = true) {
|
||||||
if (!this.channel) return Promise.reject(new Error('CHANNEL_NOT_CACHED'));
|
if (!this.channel) return Promise.reject(new Error('CHANNEL_NOT_CACHED'));
|
||||||
return this.channel.messages.fetch(this.id, { force });
|
return this.channel.messages.fetch({ message: this.id, force });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ class ThreadChannel extends Channel {
|
|||||||
* @returns {Promise<Message>}
|
* @returns {Promise<Message>}
|
||||||
*/
|
*/
|
||||||
fetchStarterMessage(options) {
|
fetchStarterMessage(options) {
|
||||||
return this.parent.messages.fetch(this.id, options);
|
return this.parent.messages.fetch({ message: this.id, ...options });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user