summary refs log tree commit diff
path: root/src/util/MessageFlags.ts
blob: d3e6a07a990f129437ac1b249664d9d276f956ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// https://github.com/discordjs/discord.js/blob/master/src/util/MessageFlags.js
// Apache License Version 2.0 Copyright 2015 - 2021 Amish Shah

import { BitField } from "./BitField";

export class MessageFlags extends BitField {
	static FLAGS = {
		CROSSPOSTED: 1n << 0n,
		IS_CROSSPOST: 1n << 1n,
		SUPPRESS_EMBEDS: 1n << 2n,
		SOURCE_MESSAGE_DELETED: 1n << 3n,
		URGENT: 1n << 4n,
	};
}