diff --git a/packages/bot/src/transformers/interaction.ts b/packages/bot/src/transformers/interaction.ts index cbea0a4a9..624f5a7fa 100644 --- a/packages/bot/src/transformers/interaction.ts +++ b/packages/bot/src/transformers/interaction.ts @@ -1,6 +1,7 @@ import { InteractionResponseTypes, InteractionTypes, + MessageFlags, type ApplicationCommandOptionTypes, type ApplicationCommandTypes, type BigString, @@ -19,7 +20,7 @@ import { type DiscordChannel, type DiscordInteractionContextType, } from '../index.js' -import { MessageFlags, type DiscordInteractionDataResolved } from '../typings.js' +import type { DiscordInteractionDataResolved } from '../typings.js' import type { Attachment } from './attachment.js' import type { Member } from './member.js' import type { Message } from './message.js' diff --git a/packages/bot/src/transformers/message.ts b/packages/bot/src/transformers/message.ts index e209adc84..d84d6f1fc 100644 --- a/packages/bot/src/transformers/message.ts +++ b/packages/bot/src/transformers/message.ts @@ -1,5 +1,6 @@ import { DiscordApplicationIntegrationType, + MessageFlags, type DiscordMessage, type DiscordMessageCall, type DiscordMessageInteractionMetadata, @@ -10,7 +11,6 @@ import { } from '@discordeno/types' import { CHANNEL_MENTION_REGEX } from '../constants.js' import { snowflakeToTimestamp, type Bot, type Poll } from '../index.js' -import { MessageFlags } from '../typings.js' import type { Attachment } from './attachment.js' import type { Channel } from './channel.js' import type { Component } from './component.js' diff --git a/packages/bot/src/transformers/sku.ts b/packages/bot/src/transformers/sku.ts index 55cdca74b..68ac55c21 100644 --- a/packages/bot/src/transformers/sku.ts +++ b/packages/bot/src/transformers/sku.ts @@ -1,4 +1,4 @@ -import type { DiscordSku, DiscordSkuFlag, DiscordSkuType } from '@discordeno/types' +import type { DiscordSku, DiscordSkuType } from '@discordeno/types' import type { Bot } from '../index.js' export function transformSku(bot: Bot, payload: DiscordSku): Sku { @@ -27,5 +27,5 @@ export interface Sku { /** System-generated URL slug based on the SKU's name */ slug: string /** SKU flags combined as a bitfield */ - flags: DiscordSkuFlag + flags: number } diff --git a/packages/types/src/discord.ts b/packages/types/src/discord.ts index 93767db3d..9a8eb0af9 100644 --- a/packages/types/src/discord.ts +++ b/packages/types/src/discord.ts @@ -22,7 +22,6 @@ import { type Localization, type MessageActivityTypes, type MessageComponentTypes, - type MessageFlags, type MessageTypes, type MfaLevels, type OverwriteTypes, @@ -33,7 +32,6 @@ import { type ScheduledEventEntityType, type ScheduledEventPrivacyLevel, type ScheduledEventStatus, - type SkuFlags, type SortOrderTypes, type StickerFormatTypes, type StickerTypes, @@ -1354,7 +1352,7 @@ export interface DiscordMessage { /** Data showing the source of a crossposted channel follow add, pin or reply message */ message_reference?: Omit /** Message flags combined as a bitfield */ - flags?: MessageFlags + flags?: number /** * The stickers sent with the message (bots currently can only receive messages with stickers, not send) * @deprecated @@ -3220,7 +3218,7 @@ export interface DiscordCreateForumPostWithMessage { /** Attachment objects with filename and description. See {@link https://discord.com/developers/docs/reference#uploading-files Uploading Files} */ attachments?: DiscordAttachment[] /** Message flags combined as a bitfield, only SUPPRESS_EMBEDS can be set */ - flags?: MessageFlags + flags?: number } /** the IDs of the set of tags that have been applied to a thread in a GUILD_FORUM channel */ applied_tags?: string[] @@ -3405,7 +3403,7 @@ export interface DiscordSku { /** System-generated URL slug based on the SKU's name */ slug: string /** SKU flags combined as a bitfield */ - flags: SkuFlags + flags: number } /** https://discord.com/developers/docs/monetization/skus#sku-object-sku-types */ diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 6c673d102..324935eb7 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -34,7 +34,6 @@ import type { InteractionResponseTypes, Localization, MessageComponentTypes, - MessageFlags, OverwriteTypes, PermissionStrings, ScheduledEventEntityType, @@ -81,7 +80,7 @@ export interface CreateMessageOptions { /** IDs of up to 3 stickers in the server to send in the message */ stickerIds?: [BigString] | [BigString, BigString] | [BigString, BigString, BigString] /** Message flags combined as a bitfield, only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set */ - flags?: MessageFlags + flags?: number /** If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created. */ enforceNonce?: boolean /** A poll object */ @@ -796,7 +795,7 @@ export interface CreateForumPostWithMessage { /** IDs of up to 3 stickers in the server to send in the message */ stickerIds?: BigString[] /** Message flags combined as a bitfield, only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set */ - flags?: MessageFlags + flags?: number } /** The IDs of the set of tags that have been applied to a thread in a GUILD_FORUM or a GUILD_MEDIA channel */ appliedTags?: BigString[] @@ -987,7 +986,7 @@ export interface EditMessage { /** Embedded `rich` content (up to 6000 characters) */ embeds?: Array> | null /** Edit the flags of the message (only `SUPPRESS_EMBEDS` can currently be set/unset) */ - flags?: MessageFlags | null + flags?: number | null /** The contents of the files being sent/edited */ files?: FileContent[] /** Allowed mentions for the message */