fix(ThreadChannel): fetch starter message properly (#9217)

This commit is contained in:
MrMythicalYT
2023-03-12 13:29:13 -04:00
committed by GitHub
parent e15b70f79a
commit af6a0e5d51

View File

@@ -310,7 +310,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;
}
/**