fix(Message): fix thread getter (#6309)

For ThreadChannel, errors occur because channel.threads do not exist.
This commit is contained in:
슈리튬
2021-08-06 16:44:56 +09:00
committed by GitHub
parent a56ba097dc
commit 913c9fa176

View File

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