mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(Message): fix thread getter (#6309)
For ThreadChannel, errors occur because channel.threads do not exist.
This commit is contained in:
@@ -410,7 +410,7 @@ class Message extends Base {
|
||||
* @readonly
|
||||
*/
|
||||
get thread() {
|
||||
return this.channel?.threads.resolve(this.id) ?? null;
|
||||
return this.channel?.threads?.resolve(this.id) ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user