buddy

node MVC discord bot
Log | Files | Refs | README

Speaking.js (742B)


      1 'use strict';
      2 
      3 const BitField = require('./BitField');
      4 
      5 /**
      6  * Data structure that makes it easy to interact with a {@link VoiceConnection#speaking}
      7  * and {@link guildMemberSpeaking} event bitfields.
      8  * @extends {BitField}
      9  */
     10 class Speaking extends BitField {}
     11 
     12 /**
     13  * @name Speaking
     14  * @kind constructor
     15  * @memberof Speaking
     16  * @param {BitFieldResolvable} [bits=0] Bit(s) to read from
     17  */
     18 
     19 /**
     20  * Numeric speaking flags. All available properties:
     21  * * `SPEAKING`
     22  * * `SOUNDSHARE`
     23  * * `PRIORITY_SPEAKING`
     24  * @type {Object}
     25  * @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking}
     26  */
     27 Speaking.FLAGS = {
     28   SPEAKING: 1 << 0,
     29   SOUNDSHARE: 1 << 1,
     30   PRIORITY_SPEAKING: 1 << 2,
     31 };
     32 
     33 module.exports = Speaking;