fix(Message): force fetching (#8047)

This commit is contained in:
muchnameless
2022-06-09 10:35:52 +02:00
committed by GitHub
parent b2eea1c900
commit f2b267c079
2 changed files with 2 additions and 2 deletions

View File

@@ -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 });
}
/**

View File

@@ -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 });
}
/**