mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 20:30:38 +00:00
24 lines
558 B
JavaScript
24 lines
558 B
JavaScript
'use strict';
|
|
|
|
const BitField = require('./BitField');
|
|
|
|
/**
|
|
* Data structure that makes it easy to interact with a {@link VoiceConnection#speaking}
|
|
* and {@link guildMemberSpeaking} event bitfields.
|
|
* @extends {BitField}
|
|
*/
|
|
class Speaking extends BitField {}
|
|
|
|
/**
|
|
* Numeric speaking flags. All available properties:
|
|
* * `SPEAKING`
|
|
* * `SOUNDSHARE`
|
|
* @type {Object}
|
|
* @see {@link https://discordapp.com/developers/docs/topics/voice-connections#speaking}
|
|
*/
|
|
Speaking.FLAGS = {
|
|
SPEAKING: 1 << 0,
|
|
SOUNDSHARE: 1 << 1,
|
|
};
|
|
|
|
module.exports = Speaking;
|