mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(Message): force fetching (#8047)
This commit is contained in:
@@ -835,7 +835,7 @@ class Message extends Base {
|
||||
*/
|
||||
fetch(force = true) {
|
||||
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>}
|
||||
*/
|
||||
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