mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-17 08:47:27 +00:00
+5
-5
@@ -54,7 +54,7 @@
|
||||
"@favware/npm-deprecate": "^1.0.7",
|
||||
"@types/lodash.merge": "^4.6.9",
|
||||
"@unocss/eslint-plugin": "^0.59.4",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"conventional-changelog-cli": "^4.1.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
@@ -62,14 +62,14 @@
|
||||
"is-ci": "^3.0.1",
|
||||
"lint-staged": "^15.2.9",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"typescript-eslint": "^8.56.0",
|
||||
"typescript-eslint": "^8.64.0",
|
||||
"unocss": "^0.60.4",
|
||||
"vercel": "^37.0.0",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"pnpm": {
|
||||
"peerDependencyRules": {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/glob": "^0.5.1",
|
||||
"@aws-sdk/client-s3": "^3.995.0",
|
||||
"@aws-sdk/client-s3": "^3.1087.0",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@vercel/blob": "^0.27.3",
|
||||
"@vercel/postgres": "^0.9.0",
|
||||
@@ -55,18 +55,18 @@
|
||||
"undici": "7.22.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.19.11",
|
||||
"@vitest/coverage-v8": "^3.1.1",
|
||||
"@types/node": "^22.20.1",
|
||||
"@vitest/coverage-v8": "^3.2.7",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"terser": "^5.46.0",
|
||||
"prettier": "^3.9.5",
|
||||
"terser": "^5.49.0",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^3.1.1"
|
||||
"vitest": "^3.2.7"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,9 +55,9 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -21,8 +21,7 @@ import { createCommentNode } from './tsdoc/index.js';
|
||||
|
||||
export function findPackage(model: ApiModel, name: string): ApiPackage | undefined {
|
||||
return (model.findMembersByName(name)[0] ?? model.findMembersByName(`@discordjs/${name}`)[0]) as
|
||||
| ApiPackage
|
||||
| undefined;
|
||||
ApiPackage | undefined;
|
||||
}
|
||||
|
||||
function hasOverloadIndex(item: ApiItem): item is ApiFunction | ApiMethod | ApiMethodSignature {
|
||||
|
||||
@@ -58,14 +58,14 @@
|
||||
"@rushstack/ts-command-line": "4.17.1",
|
||||
"colors": "~1.4.0",
|
||||
"lodash": "~4.17.15",
|
||||
"resolve": "~1.22.1",
|
||||
"resolve": "~1.22.12",
|
||||
"semver": "~7.5.4",
|
||||
"source-map": "0.6.1",
|
||||
"typescript": "~5.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.12",
|
||||
"@types/lodash": "^4.17.23",
|
||||
"@types/lodash": "^4.17.24",
|
||||
"@types/node": "^18.19.130",
|
||||
"@types/resolve": "^1.20.6",
|
||||
"@types/semver": "^7.5.8",
|
||||
@@ -75,8 +75,8 @@
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"jest": "^29.7.0",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10"
|
||||
"turbo": "^2.10.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,12 +194,10 @@ export class DocCommentEnhancer {
|
||||
}
|
||||
|
||||
// Is it referring to the working package?
|
||||
if (
|
||||
!(
|
||||
inheritDocTag.declarationReference.packageName === undefined ||
|
||||
inheritDocTag.declarationReference.packageName === this._collector.workingPackage.name
|
||||
)
|
||||
) {
|
||||
if (!(
|
||||
inheritDocTag.declarationReference.packageName === undefined ||
|
||||
inheritDocTag.declarationReference.packageName === this._collector.workingPackage.name
|
||||
)) {
|
||||
// It's referencing an external package, so skip this inheritDoc tag, since AstReferenceResolver doesn't
|
||||
// support it yet. As a workaround, this tag will get handled later by api-documenter.
|
||||
// Tracked by: https://github.com/microsoft/rushstack/issues/1195
|
||||
|
||||
@@ -20,13 +20,11 @@ export class ValidationEnhancer {
|
||||
const alreadyWarnedEntities: Set<AstEntity> = new Set<AstEntity>();
|
||||
|
||||
for (const entity of collector.entities) {
|
||||
if (
|
||||
!(
|
||||
entity.consumable ||
|
||||
collector.extractorConfig.apiReportIncludeForgottenExports ||
|
||||
collector.extractorConfig.docModelIncludeForgottenExports
|
||||
)
|
||||
) {
|
||||
if (!(
|
||||
entity.consumable ||
|
||||
collector.extractorConfig.apiReportIncludeForgottenExports ||
|
||||
collector.extractorConfig.docModelIncludeForgottenExports
|
||||
)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,12 +184,7 @@ interface DocgenClassJson {
|
||||
}
|
||||
type DocgenInterfaceJson = DocgenClassJson;
|
||||
type DocgenContainerJson =
|
||||
| DocgenClassJson
|
||||
| DocgenConstructorJson
|
||||
| DocgenInterfaceJson
|
||||
| DocgenJson
|
||||
| DocgenMethodJson
|
||||
| DocgenTypedefJson;
|
||||
DocgenClassJson | DocgenConstructorJson | DocgenInterfaceJson | DocgenJson | DocgenMethodJson | DocgenTypedefJson;
|
||||
|
||||
export interface DocgenJson {
|
||||
classes: DocgenClassJson[];
|
||||
|
||||
@@ -69,24 +69,24 @@
|
||||
"dependencies": {
|
||||
"@msgpack/msgpack": "^3.1.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"ioredis": "^5.9.3"
|
||||
"ioredis": "^5.11.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
"@discordjs/formatters": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@sapphire/shapeshift": "^4.0.0",
|
||||
"discord-api-types": "^0.38.48",
|
||||
"discord-api-types": "^0.38.49",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.6.3"
|
||||
@@ -78,17 +78,17 @@
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^16.18.126",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
||||
@@ -13,10 +13,7 @@ import { idValidator } from './Assertions';
|
||||
* Any action row component data represented as an object.
|
||||
*/
|
||||
export type AnyAPIActionRowComponent =
|
||||
| APIActionRowComponent<APIComponentInActionRow>
|
||||
| APIComponentInActionRow
|
||||
| APIMessageComponent
|
||||
| APIModalComponent;
|
||||
APIActionRowComponent<APIComponentInActionRow> | APIComponentInActionRow | APIMessageComponent | APIModalComponent;
|
||||
|
||||
/**
|
||||
* The base component builder that contains common symbols for all sorts of components.
|
||||
|
||||
@@ -42,8 +42,7 @@ export class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCa
|
||||
public constructor({ components, ...data }: Partial<APIModalInteractionResponseCallbackData> = {}) {
|
||||
this.data = { ...data };
|
||||
this.components = (components?.map((component) => createComponentBuilder(component)) ?? []) as (
|
||||
| ActionRowBuilder<ModalActionRowComponentBuilder>
|
||||
| LabelBuilder
|
||||
ActionRowBuilder<ModalActionRowComponentBuilder> | LabelBuilder
|
||||
)[];
|
||||
}
|
||||
|
||||
|
||||
@@ -65,17 +65,17 @@
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -70,24 +70,24 @@
|
||||
"@discordjs/ws": "workspace:^",
|
||||
"@sapphire/snowflake": "^3.5.5",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.38.48"
|
||||
"discord-api-types": "^0.38.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
|
||||
@@ -61,16 +61,16 @@
|
||||
"@types/node": "^18.19.130",
|
||||
"@types/prompts": "^2.4.9",
|
||||
"@types/validate-npm-package-name": "^4.0.2",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"terser": "^5.46.0",
|
||||
"prettier": "^3.9.5",
|
||||
"terser": "^5.49.0",
|
||||
"tsup": "^8.5.1",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -72,13 +72,13 @@
|
||||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "^1.2.3",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "^0.38.48",
|
||||
"@sapphire/snowflake": "3.5.5",
|
||||
"discord-api-types": "^0.38.49",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"magic-bytes.js": "^1.13.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.24.1"
|
||||
"undici": "^6.27.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
@@ -86,17 +86,17 @@
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^16.18.126",
|
||||
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
||||
"@typescript-eslint/parser": "^8.56.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.64.0",
|
||||
"@typescript-eslint/parser": "^8.64.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"dtslint": "4.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-formatter-pretty": "^5.0.0",
|
||||
"jest": "29.7.0",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsd": "^0.31.1",
|
||||
"tslint": "6.1.3",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
+14
-50
@@ -1305,8 +1305,7 @@ export type ComponentInContainerData =
|
||||
|
||||
export interface ContainerComponentData<
|
||||
ComponentType extends JSONEncodable<APIComponentInContainer> | ComponentInContainerData =
|
||||
| JSONEncodable<APIComponentInContainer>
|
||||
| ComponentInContainerData,
|
||||
JSONEncodable<APIComponentInContainer> | ComponentInContainerData,
|
||||
> extends BaseComponentData {
|
||||
components: readonly ComponentType[];
|
||||
accentColor?: number;
|
||||
@@ -4514,10 +4513,7 @@ export class WelcomeScreen extends Base {
|
||||
//#region Constants
|
||||
|
||||
export type NonSystemMessageType =
|
||||
| MessageType.Default
|
||||
| MessageType.Reply
|
||||
| MessageType.ChatInputCommand
|
||||
| MessageType.ContextMenuCommand;
|
||||
MessageType.Default | MessageType.Reply | MessageType.ChatInputCommand | MessageType.ContextMenuCommand;
|
||||
|
||||
export type UndeletableMessageType =
|
||||
| MessageType.RecipientAdd
|
||||
@@ -5588,16 +5584,13 @@ export type CommandOptionDataTypeResolvable = ApplicationCommandOptionType;
|
||||
export type CommandOptionChannelResolvableType = ApplicationCommandOptionType.Channel;
|
||||
|
||||
export type CommandOptionChoiceResolvableType =
|
||||
| ApplicationCommandOptionType.String
|
||||
| CommandOptionNumericResolvableType;
|
||||
ApplicationCommandOptionType.String | CommandOptionNumericResolvableType;
|
||||
|
||||
export type CommandOptionNumericResolvableType =
|
||||
| ApplicationCommandOptionType.Number
|
||||
| ApplicationCommandOptionType.Integer;
|
||||
ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Integer;
|
||||
|
||||
export type CommandOptionSubOptionResolvableType =
|
||||
| ApplicationCommandOptionType.Subcommand
|
||||
| ApplicationCommandOptionType.SubcommandGroup;
|
||||
ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup;
|
||||
|
||||
export type CommandOptionNonChoiceResolvableType = Exclude<
|
||||
CommandOptionDataTypeResolvable,
|
||||
@@ -5867,11 +5860,7 @@ export type ChannelPermissionConstant = Snowflake;
|
||||
export type RolePermissionConstant = Snowflake;
|
||||
|
||||
export type ApplicationCommandPermissionIdResolvable =
|
||||
| GuildChannelResolvable
|
||||
| RoleResolvable
|
||||
| UserResolvable
|
||||
| ChannelPermissionConstant
|
||||
| RolePermissionConstant;
|
||||
GuildChannelResolvable | RoleResolvable | UserResolvable | ChannelPermissionConstant | RolePermissionConstant;
|
||||
|
||||
export type ApplicationCommandResolvable = ApplicationCommand | Snowflake;
|
||||
|
||||
@@ -6021,10 +6010,7 @@ export type CacheConstructors = {
|
||||
};
|
||||
|
||||
type OverriddenCaches =
|
||||
| 'DMMessageManager'
|
||||
| 'GuildForumThreadManager'
|
||||
| 'GuildMessageManager'
|
||||
| 'GuildTextThreadManager';
|
||||
'DMMessageManager' | 'GuildForumThreadManager' | 'GuildMessageManager' | 'GuildTextThreadManager';
|
||||
|
||||
// This doesn't actually work the way it looks 😢.
|
||||
// Narrowing the type of `manager.name` doesn't propagate type information to `holds` and the return type.
|
||||
@@ -6293,11 +6279,7 @@ export interface CollectorResetTimerOptions {
|
||||
}
|
||||
|
||||
export type ColorResolvable =
|
||||
| keyof typeof Colors
|
||||
| 'Random'
|
||||
| readonly [red: number, green: number, blue: number]
|
||||
| number
|
||||
| HexColorString;
|
||||
keyof typeof Colors | 'Random' | readonly [red: number, green: number, blue: number] | number | HexColorString;
|
||||
|
||||
export interface CommandInteractionOption<Cached extends CacheType = CacheType> {
|
||||
name: string;
|
||||
@@ -6331,9 +6313,7 @@ export interface CommandInteractionResolvedData<
|
||||
export interface AutocompleteFocusedOption extends Pick<CommandInteractionOption, 'name'> {
|
||||
focused: true;
|
||||
type:
|
||||
| ApplicationCommandOptionType.String
|
||||
| ApplicationCommandOptionType.Integer
|
||||
| ApplicationCommandOptionType.Number;
|
||||
ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number;
|
||||
value: string;
|
||||
}
|
||||
|
||||
@@ -6536,10 +6516,7 @@ export interface EmbedField {
|
||||
}
|
||||
|
||||
export type EmojiIdentifierResolvable =
|
||||
| EmojiResolvable
|
||||
| `${'' | 'a:'}${string}:${Snowflake}`
|
||||
| `<${'' | 'a'}:${string}:${Snowflake}>`
|
||||
| string;
|
||||
EmojiResolvable | `${'' | 'a:'}${string}:${Snowflake}` | `<${'' | 'a'}:${string}:${Snowflake}>` | string;
|
||||
|
||||
export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji | ApplicationEmoji;
|
||||
|
||||
@@ -6693,8 +6670,7 @@ export interface FetchThreadMembersWithoutGuildMemberDataOptions {
|
||||
}
|
||||
|
||||
export type FetchThreadMembersOptions =
|
||||
| FetchThreadMembersWithGuildMemberDataOptions
|
||||
| FetchThreadMembersWithoutGuildMemberDataOptions;
|
||||
FetchThreadMembersWithGuildMemberDataOptions | FetchThreadMembersWithoutGuildMemberDataOptions;
|
||||
|
||||
export interface FetchThreadsOptions {
|
||||
archived?: FetchArchivedThreadOptions;
|
||||
@@ -6710,8 +6686,7 @@ export interface AttachmentPayload {
|
||||
}
|
||||
|
||||
export type GlobalSweepFilter<Key, Value> = () =>
|
||||
| ((value: Value, key: Key, collection: Collection<Key, Value>) => boolean)
|
||||
| null;
|
||||
((value: Value, key: Key, collection: Collection<Key, Value>) => boolean) | null;
|
||||
|
||||
interface GuildAuditLogsTypes {
|
||||
[AuditLogEvent.GuildUpdate]: ['Guild', 'Update'];
|
||||
@@ -7283,13 +7258,7 @@ export interface InviteGenerationOptions {
|
||||
}
|
||||
|
||||
export type GuildInvitableChannelResolvable =
|
||||
| TextChannel
|
||||
| VoiceChannel
|
||||
| NewsChannel
|
||||
| StageChannel
|
||||
| ForumChannel
|
||||
| MediaChannel
|
||||
| Snowflake;
|
||||
TextChannel | VoiceChannel | NewsChannel | StageChannel | ForumChannel | MediaChannel | Snowflake;
|
||||
|
||||
export interface InviteCreateOptions {
|
||||
temporary?: boolean;
|
||||
@@ -7440,12 +7409,7 @@ export interface BaseMessageOptions {
|
||||
embeds?: readonly (JSONEncodable<APIEmbed> | APIEmbed)[];
|
||||
allowedMentions?: MessageMentionOptions;
|
||||
files?: readonly (
|
||||
| BufferResolvable
|
||||
| Stream
|
||||
| JSONEncodable<APIAttachment>
|
||||
| Attachment
|
||||
| AttachmentBuilder
|
||||
| AttachmentPayload
|
||||
BufferResolvable | Stream | JSONEncodable<APIAttachment> | Attachment | AttachmentBuilder | AttachmentPayload
|
||||
)[];
|
||||
components?: readonly (
|
||||
| JSONEncodable<APIMessageTopLevelComponent>
|
||||
|
||||
+5
-15
@@ -88,20 +88,14 @@ export type RawIntegrationApplicationData = APIGuildIntegrationApplication | Par
|
||||
export type RawApplicationCommandData = APIApplicationCommand;
|
||||
|
||||
export type RawChannelData =
|
||||
| RawGuildChannelData
|
||||
| RawThreadChannelData
|
||||
| RawDMChannelData
|
||||
| RawPartialGroupDMChannelData;
|
||||
RawGuildChannelData | RawThreadChannelData | RawDMChannelData | RawPartialGroupDMChannelData;
|
||||
export type RawDMChannelData = APIChannel | APIInteractionDataResolvedChannel;
|
||||
export type RawGuildChannelData = APIChannel | APIInteractionDataResolvedChannel | Required<APIPartialChannel>;
|
||||
export type RawPartialGroupDMChannelData = APIChannel | Required<APIPartialChannel>;
|
||||
export type RawThreadChannelData = APIChannel | APIInteractionDataResolvedChannel;
|
||||
|
||||
export type RawEmojiData =
|
||||
| RawGuildEmojiData
|
||||
| RawReactionEmojiData
|
||||
| GatewayActivityEmoji
|
||||
| Omit<Partial<APIPartialEmoji>, 'animated'>;
|
||||
RawGuildEmojiData | RawReactionEmojiData | GatewayActivityEmoji | Omit<Partial<APIPartialEmoji>, 'animated'>;
|
||||
export type RawApplicationEmojiData = APIEmoji;
|
||||
export type RawGuildEmojiData = APIEmoji;
|
||||
export type RawReactionEmojiData = APIEmoji | APIPartialEmoji;
|
||||
@@ -176,8 +170,7 @@ export type RawRoleData = APIRole;
|
||||
export type RawRichPresenceAssets = GatewayActivityAssets;
|
||||
|
||||
export type RawStageInstanceData =
|
||||
| APIStageInstance
|
||||
| (Partial<APIStageInstance> & Pick<APIStageInstance, 'id' | 'channel_id' | 'guild_id'>);
|
||||
APIStageInstance | (Partial<APIStageInstance> & Pick<APIStageInstance, 'id' | 'channel_id' | 'guild_id'>);
|
||||
|
||||
export type RawStickerData = APISticker | APIStickerItem;
|
||||
|
||||
@@ -190,17 +183,14 @@ export type RawTeamMemberData = APITeamMember;
|
||||
export type RawTypingData = GatewayTypingStartDispatchData;
|
||||
|
||||
export type RawUserData =
|
||||
| (APIUser & { member?: Omit<APIGuildMember, 'user'> })
|
||||
| (GatewayPresenceUpdate['user'] & Pick<APIUser, 'username'>);
|
||||
(APIUser & { member?: Omit<APIGuildMember, 'user'> }) | (GatewayPresenceUpdate['user'] & Pick<APIUser, 'username'>);
|
||||
|
||||
export type RawVoiceRegionData = APIVoiceRegion;
|
||||
|
||||
export type RawVoiceStateData = APIVoiceState | Omit<APIVoiceState, 'guild_id'>;
|
||||
|
||||
export type RawWebhookData =
|
||||
| APIWebhook
|
||||
| RESTGetAPIWebhookWithTokenResult
|
||||
| (Partial<APIWebhook> & Required<Pick<APIWebhook, 'id' | 'guild_id'>>);
|
||||
APIWebhook | RESTGetAPIWebhookWithTokenResult | (Partial<APIWebhook> & Required<Pick<APIWebhook, 'id' | 'guild_id'>>);
|
||||
|
||||
export type RawWelcomeChannelData = APIGuildWelcomeScreenChannel;
|
||||
|
||||
|
||||
@@ -73,9 +73,9 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -55,24 +55,24 @@
|
||||
"homepage": "https://discord.js.org",
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"discord-api-types": "^0.38.48"
|
||||
"discord-api-types": "^0.38.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^16.18.126",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
|
||||
@@ -72,24 +72,24 @@
|
||||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"@discordjs/ws": "workspace:^",
|
||||
"discord-api-types": "^0.38.48"
|
||||
"discord-api-types": "^0.38.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -55,9 +55,9 @@
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
"@discordjs/rest": "workspace:^",
|
||||
"@discordjs/util": "workspace:^",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.24.1"
|
||||
"undici": "^6.27.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
@@ -76,18 +76,18 @@
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@types/supertest": "^6.0.2",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"supertest": "^7.2.2",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -88,27 +88,27 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@sapphire/snowflake": "^3.5.5",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.38.48",
|
||||
"discord-api-types": "^0.38.49",
|
||||
"magic-bytes.js": "^1.13.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.24.1"
|
||||
"undici": "^6.27.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "18.17.9",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.5.4",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -68,23 +68,23 @@
|
||||
"@vercel/postgres": "^0.9.0",
|
||||
"commander": "^12.1.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.24.1",
|
||||
"yaml": "^2.8.2"
|
||||
"undici": "^6.27.0",
|
||||
"yaml": "^2.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@turbo/gen": "^2.8.10",
|
||||
"@turbo/gen": "^2.10.5",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"env-cmd": "^10.1.0",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -866,8 +866,7 @@ export function itemHierarchyText({
|
||||
|
||||
function itemClass(item: ApiClass) {
|
||||
const constructor = item.members.find((member) => member.kind === ApiItemKind.Constructor) as
|
||||
| ApiConstructor
|
||||
| undefined;
|
||||
ApiConstructor | undefined;
|
||||
|
||||
return {
|
||||
...itemInfo(item),
|
||||
|
||||
@@ -63,33 +63,33 @@
|
||||
"@react-icons/all-files": "^4.1.0",
|
||||
"@storybook/addon-essentials": "^8.1.5",
|
||||
"@storybook/addon-interactions": "^8.1.5",
|
||||
"@storybook/addon-links": "^8.6.17",
|
||||
"@storybook/addon-links": "^8.6.18",
|
||||
"@storybook/addon-styling": "^1.3.7",
|
||||
"@storybook/blocks": "^8.1.5",
|
||||
"@storybook/react": "^8.6.17",
|
||||
"@storybook/react-vite": "^8.6.17",
|
||||
"@storybook/react": "^8.6.18",
|
||||
"@storybook/react-vite": "^8.6.18",
|
||||
"@storybook/testing-library": "^0.2.2",
|
||||
"@types/node": "^18.19.130",
|
||||
"@types/react": "^18.3.28",
|
||||
"@types/react": "^18.3.31",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@unocss/eslint-plugin": "^0.60.4",
|
||||
"@unocss/reset": "^0.60.4",
|
||||
"@vitejs/plugin-react": "^4.3.0",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"chromatic": "^11.5.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"prop-types": "^15.8.1",
|
||||
"storybook": "^8.6.17",
|
||||
"turbo": "^2.8.10",
|
||||
"storybook": "^8.6.18",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"unocss": "^0.60.4",
|
||||
"vite": "^5.2.12",
|
||||
"vite-plugin-dts": "^3.9.1",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -62,25 +62,25 @@
|
||||
"homepage": "https://discord.js.org",
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"discord-api-types": "^0.38.48"
|
||||
"discord-api-types": "^0.38.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^16.18.126",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsd": "^0.31.1",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"vitest": "^2.0.5"
|
||||
"vitest": "^2.1.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -64,15 +64,15 @@
|
||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||
"dependencies": {
|
||||
"@types/ws": "^8.5.12",
|
||||
"discord-api-types": "^0.38.48",
|
||||
"discord-api-types": "^0.38.49",
|
||||
"prism-media": "^1.3.5",
|
||||
"tslib": "^2.6.3",
|
||||
"ws": "^8.19.0"
|
||||
"ws": "^8.21.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.29.0",
|
||||
"@babel/preset-env": "^7.29.0",
|
||||
"@babel/preset-typescript": "^7.24.6",
|
||||
"@babel/core": "^7.29.7",
|
||||
"@babel/preset-env": "^7.29.7",
|
||||
"@babel/preset-typescript": "^7.29.7",
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
@@ -86,9 +86,9 @@
|
||||
"jest": "^29.7.0",
|
||||
"jest-websocket-mock": "^2.5.0",
|
||||
"mock-socket": "^9.3.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"tweetnacl": "^1.0.3",
|
||||
"typescript": "~5.8.3"
|
||||
},
|
||||
|
||||
@@ -119,8 +119,7 @@ export interface VoiceConnectionDisconnectedWebSocketState extends VoiceConnecti
|
||||
* it attempting to connect. You can manually attempt to connect using VoiceConnection#reconnect.
|
||||
*/
|
||||
export type VoiceConnectionDisconnectedState =
|
||||
| VoiceConnectionDisconnectedOtherState
|
||||
| VoiceConnectionDisconnectedWebSocketState;
|
||||
VoiceConnectionDisconnectedOtherState | VoiceConnectionDisconnectedWebSocketState;
|
||||
|
||||
/**
|
||||
* The state that a VoiceConnection will be in when it is establishing a connection to a Discord
|
||||
|
||||
@@ -147,10 +147,7 @@ export interface AudioPlayerPausedState {
|
||||
* The various states that the player can be in.
|
||||
*/
|
||||
export type AudioPlayerState =
|
||||
| AudioPlayerBufferingState
|
||||
| AudioPlayerIdleState
|
||||
| AudioPlayerPausedState
|
||||
| AudioPlayerPlayingState;
|
||||
AudioPlayerBufferingState | AudioPlayerIdleState | AudioPlayerPausedState | AudioPlayerPlayingState;
|
||||
|
||||
export interface AudioPlayer extends EventEmitter {
|
||||
/**
|
||||
|
||||
@@ -79,29 +79,29 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@types/ws": "^8.5.12",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.38.48",
|
||||
"discord-api-types": "^0.38.49",
|
||||
"tslib": "^2.6.3",
|
||||
"ws": "^8.19.0"
|
||||
"ws": "^8.21.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@discordjs/api-extractor": "workspace:^",
|
||||
"@discordjs/scripts": "workspace:^",
|
||||
"@favware/cliff-jumper": "^4.1.0",
|
||||
"@types/node": "^18.19.130",
|
||||
"@vitest/coverage-v8": "^2.0.5",
|
||||
"@vitest/coverage-v8": "^2.1.9",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild-plugin-version-injector": "^1.2.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-neon": "^0.1.62",
|
||||
"eslint-formatter-pretty": "^6.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier": "^3.9.5",
|
||||
"tsd": "^0.31.1",
|
||||
"tsup": "^8.5.1",
|
||||
"turbo": "^2.8.10",
|
||||
"turbo": "^2.10.5",
|
||||
"typescript": "~5.8.3",
|
||||
"undici": "6.24.1",
|
||||
"vitest": "^2.0.5",
|
||||
"undici": "^6.27.0",
|
||||
"vitest": "^2.1.9",
|
||||
"zlib-sync": "^0.1.10"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Generated
+3893
-4952
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user