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);
	}
}
