From ea41892fef208b10c1bb322de7683c39ebab3dd5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 5 Feb 2021 22:01:01 +0100 Subject: :wrench: build --- src/util/MessageFlags.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/util/MessageFlags.ts (limited to 'src/util/MessageFlags.ts') 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, + }; +} -- cgit 1.5.1