Initial commit
This commit is contained in:
42
src/util/SystemChannelFlagsBitField.js
Normal file
42
src/util/SystemChannelFlagsBitField.js
Normal file
@@ -0,0 +1,42 @@
|
||||
'use strict';
|
||||
|
||||
const { GuildSystemChannelFlags } = require('discord-api-types/v9');
|
||||
const BitField = require('./BitField');
|
||||
|
||||
/**
|
||||
* Data structure that makes it easy to interact with a {@link Guild#systemChannelFlags} bitfield.
|
||||
* <info>Note that all event message types are enabled by default,
|
||||
* and by setting their corresponding flags you are disabling them</info>
|
||||
* @extends {BitField}
|
||||
*/
|
||||
class SystemChannelFlagsBitField extends BitField {}
|
||||
|
||||
/**
|
||||
* @name SystemChannelFlagsBitField
|
||||
* @kind constructor
|
||||
* @memberof SystemChannelFlagsBitField
|
||||
* @param {SystemChannelFlagsResolvable} [bits=0] Bit(s) to read from
|
||||
*/
|
||||
|
||||
/**
|
||||
* Bitfield of the packed bits
|
||||
* @type {number}
|
||||
* @name SystemChannelFlagsBitField#bitfield
|
||||
*/
|
||||
|
||||
/**
|
||||
* Data that can be resolved to give a system channel flag bitfield. This can be:
|
||||
* * A string (see {@link SystemChannelFlagsBitField.Flags})
|
||||
* * A system channel flag
|
||||
* * An instance of SystemChannelFlagsBitField
|
||||
* * An Array of SystemChannelFlagsResolvable
|
||||
* @typedef {string|number|SystemChannelFlagsBitField|SystemChannelFlagsResolvable[]} SystemChannelFlagsResolvable
|
||||
*/
|
||||
|
||||
/**
|
||||
* Numeric system channel flags.
|
||||
* @type {GuildSystemChannelFlags}
|
||||
*/
|
||||
SystemChannelFlagsBitField.Flags = GuildSystemChannelFlags;
|
||||
|
||||
module.exports = SystemChannelFlagsBitField;
|
||||
Reference in New Issue
Block a user