Skip to content

Commit

Permalink
fix(Message): fix thread getter (#6309)
Browse files Browse the repository at this point in the history
For ThreadChannel, errors occur because channel.threads do not exist.
  • Loading branch information
cjh980402 committed Aug 6, 2021
1 parent a56ba09 commit 913c9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 913c9fa

Please sign in to comment.