fix(ThreadChannel): fetch starter message properly

#9217 djs
This commit is contained in:
Elysia 2023-03-12 11:18:07 +07:00
parent 78dad45524
commit 1ea9a2d651

View File

@ -326,7 +326,7 @@ class ThreadChannel extends Channel {
// eslint-disable-next-line require-await
async fetchStarterMessage(options) {
const channel = this.parent?.type === 'GUILD_FORUM' ? this : this.parent;
return channel?.messages.fetch({ message: this.id, ...options }) ?? null;
return channel?.messages.fetch(this.id, options) ?? null;
}
/**