summary refs log tree commit diff
path: root/src/util/MessageFlags.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/MessageFlags.ts')
-rw-r--r--src/util/MessageFlags.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util/MessageFlags.ts b/src/util/MessageFlags.ts
new file mode 100644

index 00000000..d3e6a07a --- /dev/null +++ b/src/util/MessageFlags.ts
@@ -0,0 +1,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, + }; +}