From 752e12116ebc7b6fb6c683cd18d87cb5d53294f9 Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Tue, 6 Sep 2016 18:05:14 -0400 Subject: [PATCH] Move topic to TextChannel (Fixes #642) --- src/structures/GuildChannel.js | 5 ----- src/structures/TextChannel.js | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index e418227eb..86ba354b5 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -22,11 +22,6 @@ class GuildChannel extends Channel { setup(data) { super.setup(data); - /** - * The topic of the Guild Channel, if there is one. - * @type {?string} - */ - this.topic = data.topic; /** * The position of the channel in the list. * @type {number} diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index f6e0f577f..b992f9a20 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -15,6 +15,11 @@ class TextChannel extends GuildChannel { setup(data) { super.setup(data); + /** + * The topic of the Guild Channel, if there is one. + * @type {?string} + */ + this.topic = data.topic; /** * The ID of the last message in the channel, if one was sent. * @type {?string}