buddy

node MVC discord bot
Log | Files | Refs | README

NewsChannel.js (366B)


      1 'use strict';
      2 
      3 const TextChannel = require('./TextChannel');
      4 
      5 /**
      6  * Represents a guild news channel on Discord.
      7  * @extends {TextChannel}
      8  */
      9 class NewsChannel extends TextChannel {
     10   _patch(data) {
     11     super._patch(data);
     12 
     13     // News channels don't have a rate limit per user, remove it
     14     this.rateLimitPerUser = undefined;
     15   }
     16 }
     17 
     18 module.exports = NewsChannel;