mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix(ThreadChannel): fetch starter message properly (#9217)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user