Skip to content

Commit

Permalink
Removes BitFlags type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Darker-Ink committed Nov 9, 2023
1 parent 85fae6f commit 8f65529
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/application.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/channel.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/guild-member.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/intents.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/message.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/permissions.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 1 addition & 3 deletions packages/discord-bitflag/src/flags/user.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 8f65529

Please sign in to comment.