Skip to content

Commit

Permalink
fix: name should never be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey committed Jun 29, 2021
1 parent 02070e2 commit 112ef39
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/structures/ThreadChannel.js
Expand Up @@ -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) {
/**
Expand Down

0 comments on commit 112ef39

Please sign in to comment.