From 8f6552970de48c0c75bf2ecff2ef56272c0f3016 Mon Sep 17 00:00:00 2001 From: DarkerInk Date: Thu, 9 Nov 2023 01:22:50 -0600 Subject: [PATCH] Removes BitFlags type annotation --- packages/discord-bitflag/src/flags/application.ts | 4 +--- packages/discord-bitflag/src/flags/channel.ts | 4 +--- packages/discord-bitflag/src/flags/guild-member.ts | 4 +--- packages/discord-bitflag/src/flags/intents.ts | 4 +--- packages/discord-bitflag/src/flags/message.ts | 4 +--- packages/discord-bitflag/src/flags/permissions.ts | 4 +--- packages/discord-bitflag/src/flags/user.ts | 4 +--- 7 files changed, 7 insertions(+), 21 deletions(-) diff --git a/packages/discord-bitflag/src/flags/application.ts b/packages/discord-bitflag/src/flags/application.ts index bfdd9f67..f52f3be8 100644 --- a/packages/discord-bitflag/src/flags/application.ts +++ b/packages/discord-bitflag/src/flags/application.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const ApplicationFlags: BitFlags = Object.freeze({ +export const ApplicationFlags = Object.freeze({ ApplicationAutoModerationRuleCreateBadge: 1n << 6n, GatewayPresence: 1n << 12n, GatewayPresenceLimited: 1n << 13n, diff --git a/packages/discord-bitflag/src/flags/channel.ts b/packages/discord-bitflag/src/flags/channel.ts index c5c00432..811a6e7b 100644 --- a/packages/discord-bitflag/src/flags/channel.ts +++ b/packages/discord-bitflag/src/flags/channel.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const ChannelFlags: BitFlags = Object.freeze({ +export const ChannelFlags = Object.freeze({ Pinned: 1n << 1n, RequireTag: 1n << 4n, HideMediaDownloadOptions: 1n << 15n, diff --git a/packages/discord-bitflag/src/flags/guild-member.ts b/packages/discord-bitflag/src/flags/guild-member.ts index 7dec77ce..7759e0c7 100644 --- a/packages/discord-bitflag/src/flags/guild-member.ts +++ b/packages/discord-bitflag/src/flags/guild-member.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const GuildMemberFlags: BitFlags = Object.freeze({ +export const GuildMemberFlags = Object.freeze({ DidRejoin: 1n << 0n, CompletedOnboarding: 1n << 1n, BypassesVerification: 1n << 2n, diff --git a/packages/discord-bitflag/src/flags/intents.ts b/packages/discord-bitflag/src/flags/intents.ts index 6074baeb..f3a29567 100644 --- a/packages/discord-bitflag/src/flags/intents.ts +++ b/packages/discord-bitflag/src/flags/intents.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const IntentFlags: BitFlags = Object.freeze({ +export const IntentFlags = Object.freeze({ Guilds: 1n << 0n, GuildMembers: 1n << 1n, GuildModeration: 1n << 2n, diff --git a/packages/discord-bitflag/src/flags/message.ts b/packages/discord-bitflag/src/flags/message.ts index 27c3f304..07cb4a5f 100644 --- a/packages/discord-bitflag/src/flags/message.ts +++ b/packages/discord-bitflag/src/flags/message.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const MessageFlags: BitFlags = Object.freeze({ +export const MessageFlags = Object.freeze({ Crossposted: 1n << 0n, IsCrosspost: 1n << 1n, SuppressEmbeds: 1n << 2n, diff --git a/packages/discord-bitflag/src/flags/permissions.ts b/packages/discord-bitflag/src/flags/permissions.ts index 109a218d..a0930694 100644 --- a/packages/discord-bitflag/src/flags/permissions.ts +++ b/packages/discord-bitflag/src/flags/permissions.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const PermissionFlags: BitFlags = Object.freeze({ +export const PermissionFlags = Object.freeze({ CreateInstantInvite: 1n << 0n, KickMembers: 1n << 1n, BanMembers: 1n << 2n, diff --git a/packages/discord-bitflag/src/flags/user.ts b/packages/discord-bitflag/src/flags/user.ts index 5c0b57c1..8acbb8b4 100644 --- a/packages/discord-bitflag/src/flags/user.ts +++ b/packages/discord-bitflag/src/flags/user.ts @@ -1,6 +1,4 @@ -import type { BitFlags } from "bitflag-js"; - -export const UserFlags: BitFlags = Object.freeze({ +export const UserFlags = Object.freeze({ Staff: 1n << 0n, Partner: 1n << 1n, HypeSquad: 1n << 2n,