Backport news/store channels

This commit is contained in:
Schuyler Cebulskie
2019-05-11 14:58:46 -04:00
parent ee42bdfd76
commit 5e4654ee07
6 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
const TextChannel = require('./TextChannel');
/**
* Represents a guild news channel on Discord.
* @extends {TextChannel}
*/
class NewsChannel extends TextChannel {
constructor(guild, data) {
super(guild, data);
this.type = 'news';
}
setup(data) {
super.setup(data);
/**
* The ratelimit per user for this channel (always 0)
* @type {number}
*/
this.rateLimitPerUser = 0;
}
}
module.exports = NewsChannel;