mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Fix CI error, remove usage of MessageFlags and SkuFlags
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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<DiscordMessageReference, 'failIfNotExists'>
|
||||
/** 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 */
|
||||
|
||||
@@ -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<Camelize<DiscordEmbed>> | 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 */
|
||||
|
||||
Reference in New Issue
Block a user