mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53: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
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get thread() {
|
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