-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
'use strict'; | ||
|
||
const { GuildMemberFlags } = require('discord-api-types/v10'); | ||
const BitField = require('./BitField'); | ||
|
||
/** | ||
* Data structure that makes it easy to interact with a {@link GuildMember#flags} bitfield. | ||
* @extends {BitField} | ||
*/ | ||
class GuildMemberFlagsBitField extends BitField { | ||
/** | ||
* Numeric guild guild member flags. | ||
* @type {GuildMemberFlags} | ||
* @memberof GuildMemberFlagsBitField | ||
*/ | ||
static Flags = GuildMemberFlags; | ||
} | ||
|
||
/** | ||
* @name GuildMemberFlagsBitField | ||
* @kind constructor | ||
* @memberof GuildMemberFlagsBitField | ||
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from | ||
*/ | ||
|
||
/** | ||
* Bitfield of the packed bits | ||
* @type {number} | ||
* @name GuildMemberFlagsBitField#bitfield | ||
*/ | ||
|
||
/** | ||
* Data that can be resolved to give a guild member flag bitfield. This can be: | ||
* * A string (see {@link GuildMemberFlagsBitField.Flags}) | ||
* * A guild member flag | ||
* * An instance of GuildMemberFlagsBitField | ||
* * An Array of GuildMemberFlagsResolvable | ||
* @typedef {string|number|GuildMemberFlagsBitField|GuildMemberFlagsResolvable[]} GuildMemberFlagsResolvable | ||
*/ | ||
|
||
exports.GuildMemberFlagsBitField = GuildMemberFlagsBitField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters