From 112ef39d426d2d2fe30ed1de633cd26810f49cf2 Mon Sep 17 00:00:00 2001 From: Monbrey Date: Tue, 29 Jun 2021 21:23:37 +1000 Subject: [PATCH] fix: name should never be missing --- src/structures/ThreadChannel.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/structures/ThreadChannel.js b/src/structures/ThreadChannel.js index 6f5d3987614c..3df7bcd7d55b 100644 --- a/src/structures/ThreadChannel.js +++ b/src/structures/ThreadChannel.js @@ -44,13 +44,11 @@ class ThreadChannel extends Channel { _patch(data) { super._patch(data); - if ('name' in data) { - /** - * The name of the thread - * @type {string} - */ - this.name = data.name; - } + /** + * The name of the thread + * @type {string} + */ + this.name = data.name; if ('parent_id' in data) { /**