mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
25 lines
454 B
JavaScript
25 lines
454 B
JavaScript
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;
|