Skip to content

Commit

Permalink
fix(Message): force fetching (#8047)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Jun 9, 2022
1 parent b2eea1c commit f2b267c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/ThreadChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

/**
Expand Down

0 comments on commit f2b267c

Please sign in to comment.