mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-30 15:40:08 +00:00
* feat(structures): update barrel exports in preparation for SKU structure * feat(structures): add SKUFlagsBitField to /bitfields * feat(structures): add SKU structure * chore(structures): correct barrel exports * chore(structures): export SKUBitfieldFlags * docs(structures): correct usage of see/link doc comments * chore(structures): correct usage of bitfields in extending classes * docs(structures): remove unnecessary links * fix(structures): correctly apply bitfields, introduced in #11404 --------- Co-authored-by: Almeida <github@almeidx.dev>
17 lines
442 B
TypeScript
17 lines
442 B
TypeScript
import { ChannelFlags } from 'discord-api-types/v10';
|
|
import { BitField } from './BitField.js';
|
|
|
|
/**
|
|
* Data structure that makes it easy to interact with a {@link (Channel:class).flags} bitfield.
|
|
*/
|
|
export class ChannelFlagsBitField extends BitField<keyof typeof ChannelFlags> {
|
|
/**
|
|
* Numeric guild channel flags.
|
|
*/
|
|
public static override readonly Flags = ChannelFlags;
|
|
|
|
public override toJSON() {
|
|
return super.toJSON(true);
|
|
}
|
|
}
|