buddy

node MVC discord bot
Log | Files | Refs | README

StoreChannel.js (400B)


      1 'use strict';
      2 
      3 const GuildChannel = require('./GuildChannel');
      4 
      5 /**
      6  * Represents a guild store channel on Discord.
      7  * @extends {GuildChannel}
      8  */
      9 class StoreChannel extends GuildChannel {
     10   _patch(data) {
     11     super._patch(data);
     12 
     13     /**
     14      * If the guild considers this channel NSFW
     15      * @type {boolean}
     16      * @readonly
     17      */
     18     this.nsfw = data.nsfw;
     19   }
     20 }
     21 
     22 module.exports = StoreChannel;