mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Move topic to TextChannel (Fixes #642)
This commit is contained in:
@@ -22,11 +22,6 @@ class GuildChannel extends Channel {
|
|||||||
|
|
||||||
setup(data) {
|
setup(data) {
|
||||||
super.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.
|
* The position of the channel in the list.
|
||||||
* @type {number}
|
* @type {number}
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ class TextChannel extends GuildChannel {
|
|||||||
|
|
||||||
setup(data) {
|
setup(data) {
|
||||||
super.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.
|
* The ID of the last message in the channel, if one was sent.
|
||||||
* @type {?string}
|
* @type {?string}
|
||||||
|
|||||||
Reference in New Issue
Block a user