mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
build: Upgrade v14 dependencies (#11427)
* build: upgrade dependencies * build: please Undici please * build: regenerate file * chore: fix docs by using bundler * fix: revert upgrade for package * build: fix versions
This commit is contained in:
@@ -107,7 +107,7 @@
|
|||||||
"allowArbitraryExtensions": false,
|
"allowArbitraryExtensions": false,
|
||||||
"allowImportingTsExtensions": false,
|
"allowImportingTsExtensions": false,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "Bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"resolvePackageJsonExports": false,
|
"resolvePackageJsonExports": false,
|
||||||
"resolvePackageJsonImports": false,
|
"resolvePackageJsonImports": false,
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -56,17 +56,17 @@
|
|||||||
"@unocss/eslint-plugin": "^0.59.4",
|
"@unocss/eslint-plugin": "^0.59.4",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"conventional-changelog-cli": "^4.1.0",
|
"conventional-changelog-cli": "^4.1.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"husky": "^9.1.5",
|
"husky": "^9.1.5",
|
||||||
"is-ci": "^3.0.1",
|
"is-ci": "^3.0.1",
|
||||||
"lint-staged": "^15.2.9",
|
"lint-staged": "^15.2.9",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"typescript-eslint": "^8.2.0",
|
"typescript-eslint": "^8.56.0",
|
||||||
"unocss": "^0.60.4",
|
"unocss": "^0.60.4",
|
||||||
"vercel": "^37.0.0",
|
"vercel": "^37.0.0",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.1",
|
||||||
"@aws-sdk/client-s3": "^3.787.0",
|
"@aws-sdk/client-s3": "^3.995.0",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@vercel/blob": "^0.27.3",
|
"@vercel/blob": "^0.27.3",
|
||||||
"@vercel/postgres": "^0.9.0",
|
"@vercel/postgres": "^0.9.0",
|
||||||
@@ -52,19 +52,19 @@
|
|||||||
"p-limit": "^6.2.0",
|
"p-limit": "^6.2.0",
|
||||||
"p-queue": "^8.1.0",
|
"p-queue": "^8.1.0",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"undici": "7.8.0"
|
"undici": "7.22.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.14.0",
|
"@types/node": "^22.19.11",
|
||||||
"@vitest/coverage-v8": "^3.1.1",
|
"@vitest/coverage-v8": "^3.1.1",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.8.1",
|
||||||
"terser": "^5.37.0",
|
"terser": "^5.46.0",
|
||||||
"tsup": "^8.4.0",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.5.0",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.8.3",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^3.1.1"
|
"vitest": "^3.1.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -37,15 +37,15 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ import { type IApiDeclaredItemOptions, ApiDeclaredItem, type IApiDeclaredItemJso
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiPropertyItemOptions
|
export interface IApiPropertyItemOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiOptionalMixinOptions,
|
IApiOptionalMixinOptions,
|
||||||
IApiReadonlyMixinOptions,
|
IApiReadonlyMixinOptions,
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ import {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiCallSignatureOptions
|
export interface IApiCallSignatureOptions
|
||||||
extends IApiTypeParameterListMixinOptions,
|
extends
|
||||||
|
IApiTypeParameterListMixinOptions,
|
||||||
IApiParameterListMixinOptions,
|
IApiParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiReturnTypeMixinOptions,
|
IApiReturnTypeMixinOptions,
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ import { HeritageType } from './HeritageType.js';
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiClassOptions
|
export interface IApiClassOptions
|
||||||
extends IApiItemContainerMixinOptions,
|
extends
|
||||||
|
IApiItemContainerMixinOptions,
|
||||||
IApiNameMixinOptions,
|
IApiNameMixinOptions,
|
||||||
IApiAbstractMixinOptions,
|
IApiAbstractMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
@@ -48,10 +49,7 @@ export interface IExcerptTokenRangeWithTypeParameters extends IExcerptTokenRange
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IApiClassJson
|
export interface IApiClassJson
|
||||||
extends IApiDeclaredItemJson,
|
extends IApiDeclaredItemJson, IApiAbstractMixinJson, IApiTypeParameterListMixinJson, IApiExportedMixinJson {
|
||||||
IApiAbstractMixinJson,
|
|
||||||
IApiTypeParameterListMixinJson,
|
|
||||||
IApiExportedMixinJson {
|
|
||||||
extendsTokenRange?: IExcerptTokenRangeWithTypeParameters | undefined;
|
extendsTokenRange?: IExcerptTokenRangeWithTypeParameters | undefined;
|
||||||
implementsTokenRanges: IExcerptTokenRangeWithTypeParameters[];
|
implementsTokenRanges: IExcerptTokenRangeWithTypeParameters[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ import {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiConstructSignatureOptions
|
export interface IApiConstructSignatureOptions
|
||||||
extends IApiTypeParameterListMixinOptions,
|
extends
|
||||||
|
IApiTypeParameterListMixinOptions,
|
||||||
IApiParameterListMixinOptions,
|
IApiParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiReturnTypeMixinOptions,
|
IApiReturnTypeMixinOptions,
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ import { type IApiReleaseTagMixinOptions, ApiReleaseTagMixin } from '../mixins/A
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiConstructorOptions
|
export interface IApiConstructorOptions
|
||||||
extends IApiParameterListMixinOptions,
|
extends
|
||||||
|
IApiParameterListMixinOptions,
|
||||||
IApiProtectedMixinOptions,
|
IApiProtectedMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiDeclaredItemOptions {}
|
IApiDeclaredItemOptions {}
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import type { ApiEnumMember } from './ApiEnumMember.js';
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiEnumOptions
|
export interface IApiEnumOptions
|
||||||
extends IApiItemContainerMixinOptions,
|
extends
|
||||||
|
IApiItemContainerMixinOptions,
|
||||||
IApiNameMixinOptions,
|
IApiNameMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiDeclaredItemOptions,
|
IApiDeclaredItemOptions,
|
||||||
|
|||||||
@@ -14,10 +14,7 @@ import { ApiReleaseTagMixin, type IApiReleaseTagMixinOptions } from '../mixins/A
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiEnumMemberOptions
|
export interface IApiEnumMemberOptions
|
||||||
extends IApiNameMixinOptions,
|
extends IApiNameMixinOptions, IApiReleaseTagMixinOptions, IApiDeclaredItemOptions, IApiInitializerMixinOptions {}
|
||||||
IApiReleaseTagMixinOptions,
|
|
||||||
IApiDeclaredItemOptions,
|
|
||||||
IApiInitializerMixinOptions {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Options for customizing the sort order of {@link ApiEnum} members.
|
* Options for customizing the sort order of {@link ApiEnum} members.
|
||||||
|
|||||||
@@ -14,10 +14,7 @@ import { type IApiReleaseTagMixinOptions, ApiReleaseTagMixin } from '../mixins/A
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiEventOptions
|
export interface IApiEventOptions
|
||||||
extends IApiNameMixinOptions,
|
extends IApiNameMixinOptions, IApiParameterListMixinOptions, IApiReleaseTagMixinOptions, IApiDeclaredItemOptions {}
|
||||||
IApiParameterListMixinOptions,
|
|
||||||
IApiReleaseTagMixinOptions,
|
|
||||||
IApiDeclaredItemOptions {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a TypeScript event declaration that belongs to an `ApiClass`.
|
* Represents a TypeScript event declaration that belongs to an `ApiClass`.
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ import {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiFunctionOptions
|
export interface IApiFunctionOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiTypeParameterListMixinOptions,
|
IApiTypeParameterListMixinOptions,
|
||||||
IApiParameterListMixinOptions,
|
IApiParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ import { type IApiReturnTypeMixinOptions, ApiReturnTypeMixin } from '../mixins/A
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiIndexSignatureOptions
|
export interface IApiIndexSignatureOptions
|
||||||
extends IApiParameterListMixinOptions,
|
extends
|
||||||
|
IApiParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiReturnTypeMixinOptions,
|
IApiReturnTypeMixinOptions,
|
||||||
IApiReadonlyMixinOptions,
|
IApiReadonlyMixinOptions,
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ import { HeritageType } from './HeritageType.js';
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiInterfaceOptions
|
export interface IApiInterfaceOptions
|
||||||
extends IApiItemContainerMixinOptions,
|
extends
|
||||||
|
IApiItemContainerMixinOptions,
|
||||||
IApiNameMixinOptions,
|
IApiNameMixinOptions,
|
||||||
IApiTypeParameterListMixinOptions,
|
IApiTypeParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
@@ -45,7 +46,8 @@ export interface IApiInterfaceOptions
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IApiInterfaceJson
|
export interface IApiInterfaceJson
|
||||||
extends IApiItemContainerJson,
|
extends
|
||||||
|
IApiItemContainerJson,
|
||||||
IApiNameMixinJson,
|
IApiNameMixinJson,
|
||||||
IApiTypeParameterListMixinJson,
|
IApiTypeParameterListMixinJson,
|
||||||
IApiReleaseTagMixinJson,
|
IApiReleaseTagMixinJson,
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ import {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiMethodOptions
|
export interface IApiMethodOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiAbstractMixinOptions,
|
IApiAbstractMixinOptions,
|
||||||
IApiOptionalMixinOptions,
|
IApiOptionalMixinOptions,
|
||||||
IApiParameterListMixinOptions,
|
IApiParameterListMixinOptions,
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ import {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiMethodSignatureOptions
|
export interface IApiMethodSignatureOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiTypeParameterListMixinOptions,
|
IApiTypeParameterListMixinOptions,
|
||||||
IApiParameterListMixinOptions,
|
IApiParameterListMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ import { ApiReleaseTagMixin, type IApiReleaseTagMixinOptions } from '../mixins/A
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiNamespaceOptions
|
export interface IApiNamespaceOptions
|
||||||
extends IApiItemContainerMixinOptions,
|
extends
|
||||||
|
IApiItemContainerMixinOptions,
|
||||||
IApiNameMixinOptions,
|
IApiNameMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiDeclaredItemOptions,
|
IApiDeclaredItemOptions,
|
||||||
|
|||||||
@@ -28,9 +28,7 @@ import { DeserializerContext, ApiJsonSchemaVersion } from './DeserializerContext
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiPackageOptions
|
export interface IApiPackageOptions
|
||||||
extends IApiItemContainerMixinOptions,
|
extends IApiItemContainerMixinOptions, IApiNameMixinOptions, IApiDocumentedItemOptions {
|
||||||
IApiNameMixinOptions,
|
|
||||||
IApiDocumentedItemOptions {
|
|
||||||
dependencies?: Record<string, string> | undefined;
|
dependencies?: Record<string, string> | undefined;
|
||||||
projectFolderUrl?: string | undefined;
|
projectFolderUrl?: string | undefined;
|
||||||
tsdocConfiguration: TSDocConfiguration;
|
tsdocConfiguration: TSDocConfiguration;
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ import { ApiStaticMixin, type IApiStaticMixinOptions } from '../mixins/ApiStatic
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiPropertyOptions
|
export interface IApiPropertyOptions
|
||||||
extends IApiPropertyItemOptions,
|
extends
|
||||||
|
IApiPropertyItemOptions,
|
||||||
IApiAbstractMixinOptions,
|
IApiAbstractMixinOptions,
|
||||||
IApiProtectedMixinOptions,
|
IApiProtectedMixinOptions,
|
||||||
IApiStaticMixinOptions,
|
IApiStaticMixinOptions,
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ import type { DeserializerContext } from './DeserializerContext.js';
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiTypeAliasOptions
|
export interface IApiTypeAliasOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiDeclaredItemOptions,
|
IApiDeclaredItemOptions,
|
||||||
IApiTypeParameterListMixinOptions,
|
IApiTypeParameterListMixinOptions,
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ import type { DeserializerContext } from './DeserializerContext.js';
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export interface IApiVariableOptions
|
export interface IApiVariableOptions
|
||||||
extends IApiNameMixinOptions,
|
extends
|
||||||
|
IApiNameMixinOptions,
|
||||||
IApiReleaseTagMixinOptions,
|
IApiReleaseTagMixinOptions,
|
||||||
IApiReadonlyMixinOptions,
|
IApiReadonlyMixinOptions,
|
||||||
IApiDeclaredItemOptions,
|
IApiDeclaredItemOptions,
|
||||||
|
|||||||
@@ -267,7 +267,8 @@ function mapParam(
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface IApiMethodJson
|
interface IApiMethodJson
|
||||||
extends IApiAbstractMixinJson,
|
extends
|
||||||
|
IApiAbstractMixinJson,
|
||||||
IApiDeclaredItemJson,
|
IApiDeclaredItemJson,
|
||||||
IApiNameMixinJson,
|
IApiNameMixinJson,
|
||||||
IApiOptionalMixinJson,
|
IApiOptionalMixinJson,
|
||||||
@@ -279,10 +280,7 @@ interface IApiMethodJson
|
|||||||
IApiTypeParameterListMixinJson {}
|
IApiTypeParameterListMixinJson {}
|
||||||
|
|
||||||
interface IApiConstructorJson
|
interface IApiConstructorJson
|
||||||
extends IApiParameterListJson,
|
extends IApiParameterListJson, IApiProtectedMixinJson, IApiReleaseTagMixinJson, IApiDeclaredItemJson {}
|
||||||
IApiProtectedMixinJson,
|
|
||||||
IApiReleaseTagMixinJson,
|
|
||||||
IApiDeclaredItemJson {}
|
|
||||||
|
|
||||||
function mapMethod(method: DocgenMethodJson, _package: string, parent?: DocgenClassJson): IApiMethodJson {
|
function mapMethod(method: DocgenMethodJson, _package: string, parent?: DocgenClassJson): IApiMethodJson {
|
||||||
const excerptTokens: IExcerptToken[] = [];
|
const excerptTokens: IExcerptToken[] = [];
|
||||||
|
|||||||
@@ -50,15 +50,15 @@
|
|||||||
"@microsoft/tsdoc": "0.14.2"
|
"@microsoft/tsdoc": "0.14.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -77,10 +77,7 @@ export interface ApiParameterListJSON {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiMethodSignatureJSON
|
export interface ApiMethodSignatureJSON
|
||||||
extends ApiItemJSON,
|
extends ApiItemJSON, ApiTypeParameterListJSON, ApiParameterListJSON, ApiInheritableJSON {
|
||||||
ApiTypeParameterListJSON,
|
|
||||||
ApiParameterListJSON,
|
|
||||||
ApiInheritableJSON {
|
|
||||||
mergedSiblings: ApiMethodSignatureJSON[];
|
mergedSiblings: ApiMethodSignatureJSON[];
|
||||||
optional: boolean;
|
optional: boolean;
|
||||||
overloadIndex: number;
|
overloadIndex: number;
|
||||||
|
|||||||
@@ -65,18 +65,18 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^29.5.12",
|
||||||
"@types/lodash": "^4.17.4",
|
"@types/lodash": "^4.17.23",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@types/resolve": "^1.20.6",
|
"@types/resolve": "^1.20.6",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14"
|
"turbo": "^2.8.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,25 +67,25 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@msgpack/msgpack": "^3.0.0-beta2",
|
"@msgpack/msgpack": "^3.1.3",
|
||||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"ioredis": "^5.4.1"
|
"ioredis": "^5.9.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -52,8 +52,7 @@ export interface IBaseBroker<TEvents extends {}> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IPubSubBroker<TEvents extends {}>
|
export interface IPubSubBroker<TEvents extends {}>
|
||||||
extends IBaseBroker<TEvents>,
|
extends IBaseBroker<TEvents>, AsyncEventEmitter<ToEventMap<TEvents>> {
|
||||||
AsyncEventEmitter<ToEventMap<TEvents>> {
|
|
||||||
/**
|
/**
|
||||||
* Publishes an event
|
* Publishes an event
|
||||||
*/
|
*/
|
||||||
@@ -61,8 +60,7 @@ export interface IPubSubBroker<TEvents extends {}>
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IRPCBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>>
|
export interface IRPCBroker<TEvents extends Record<string, any[]>, TResponses extends Record<keyof TEvents, any>>
|
||||||
extends IBaseBroker<TEvents>,
|
extends IBaseBroker<TEvents>, AsyncEventEmitter<ToEventMap<TEvents, TResponses>> {
|
||||||
AsyncEventEmitter<ToEventMap<TEvents, TResponses>> {
|
|
||||||
/**
|
/**
|
||||||
* Makes an RPC call
|
* Makes an RPC call
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -58,9 +58,9 @@ export const DefaultRedisBrokerOptions = {
|
|||||||
* Helper class with shared Redis logic
|
* Helper class with shared Redis logic
|
||||||
*/
|
*/
|
||||||
export abstract class BaseRedisBroker<
|
export abstract class BaseRedisBroker<
|
||||||
TEvents extends Record<string, any[]>,
|
TEvents extends Record<string, any[]>,
|
||||||
TResponses extends Record<keyof TEvents, any> | undefined = undefined,
|
TResponses extends Record<keyof TEvents, any> | undefined = undefined,
|
||||||
>
|
>
|
||||||
extends AsyncEventEmitter<ToEventMap<TEvents, TResponses>>
|
extends AsyncEventEmitter<ToEventMap<TEvents, TResponses>>
|
||||||
implements IBaseBroker<TEvents>
|
implements IBaseBroker<TEvents>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
"@discordjs/formatters": "workspace:^",
|
"@discordjs/formatters": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@sapphire/shapeshift": "^4.0.0",
|
"@sapphire/shapeshift": "^4.0.0",
|
||||||
"discord-api-types": "^0.38.33",
|
"discord-api-types": "^0.38.40",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
"ts-mixer": "^6.0.4",
|
"ts-mixer": "^6.0.4",
|
||||||
"tslib": "^2.6.3"
|
"tslib": "^2.6.3"
|
||||||
@@ -77,17 +77,17 @@
|
|||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^16.18.105",
|
"@types/node": "^16.18.126",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ export type AnyAPIActionRowComponent =
|
|||||||
*/
|
*/
|
||||||
export abstract class ComponentBuilder<
|
export abstract class ComponentBuilder<
|
||||||
DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
||||||
> implements JSONEncodable<AnyAPIActionRowComponent>
|
> implements JSONEncodable<AnyAPIActionRowComponent> {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* The API data associated with this component.
|
* The API data associated with this component.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ export function createComponentBuilder(
|
|||||||
case ComponentType.FileUpload:
|
case ComponentType.FileUpload:
|
||||||
return new FileUploadBuilder(data);
|
return new FileUploadBuilder(data);
|
||||||
default:
|
default:
|
||||||
// @ts-expect-error This case can still occur if we get a newer unsupported component type
|
// https://github.com/discordjs/discord.js/pull/11410
|
||||||
throw new Error(`Cannot properly serialize component type: ${data.type}`);
|
throw new Error(`Cannot properly serialize component type: ${data.type}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ export class LabelBuilder extends ComponentBuilder<LabelBuilderData> {
|
|||||||
|
|
||||||
this.data = {
|
this.data = {
|
||||||
...rest,
|
...rest,
|
||||||
|
// @ts-expect-error https://github.com/discordjs/discord.js/pull/11410
|
||||||
component: component ? createComponentBuilder(component) : undefined,
|
component: component ? createComponentBuilder(component) : undefined,
|
||||||
type: ComponentType.Label,
|
type: ComponentType.Label,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -80,7 +80,8 @@ export class SlashCommandBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SlashCommandBuilder
|
export interface SlashCommandBuilder
|
||||||
extends SharedNameAndDescription,
|
extends
|
||||||
|
SharedNameAndDescription,
|
||||||
SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>,
|
SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>,
|
||||||
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
||||||
SharedSlashCommand {}
|
SharedSlashCommand {}
|
||||||
@@ -89,7 +90,8 @@ export interface SlashCommandBuilder
|
|||||||
* An interface specifically for slash command subcommands.
|
* An interface specifically for slash command subcommands.
|
||||||
*/
|
*/
|
||||||
export interface SlashCommandSubcommandsOnlyBuilder
|
export interface SlashCommandSubcommandsOnlyBuilder
|
||||||
extends SharedNameAndDescription,
|
extends
|
||||||
|
SharedNameAndDescription,
|
||||||
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
SharedSlashCommandSubcommands<SlashCommandSubcommandsOnlyBuilder>,
|
||||||
SharedSlashCommand {}
|
SharedSlashCommand {}
|
||||||
|
|
||||||
@@ -97,9 +99,7 @@ export interface SlashCommandSubcommandsOnlyBuilder
|
|||||||
* An interface specifically for slash command options.
|
* An interface specifically for slash command options.
|
||||||
*/
|
*/
|
||||||
export interface SlashCommandOptionsOnlyBuilder
|
export interface SlashCommandOptionsOnlyBuilder
|
||||||
extends SharedNameAndDescription,
|
extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>, SharedSlashCommand {}
|
||||||
SharedSlashCommandOptions<SlashCommandOptionsOnlyBuilder>,
|
|
||||||
SharedSlashCommand {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An interface that ensures the `toJSON()` call will return something
|
* An interface that ensures the `toJSON()` call will return something
|
||||||
|
|||||||
@@ -127,5 +127,4 @@ export class SlashCommandSubcommandBuilder implements ToAPIApplicationCommandOpt
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SlashCommandSubcommandBuilder
|
export interface SlashCommandSubcommandBuilder
|
||||||
extends SharedNameAndDescription,
|
extends SharedNameAndDescription, SharedSlashCommandOptions<SlashCommandSubcommandBuilder> {}
|
||||||
SharedSlashCommandOptions<SlashCommandSubcommandBuilder> {}
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export class SlashCommandIntegerOption
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SlashCommandIntegerOption
|
export interface SlashCommandIntegerOption
|
||||||
extends ApplicationCommandNumericOptionMinMaxValueMixin,
|
extends
|
||||||
|
ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||||
ApplicationCommandOptionWithChoicesMixin<number>,
|
ApplicationCommandOptionWithChoicesMixin<number>,
|
||||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
ApplicationCommandOptionWithAutocompleteMixin {}
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export class SlashCommandNumberOption
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SlashCommandNumberOption
|
export interface SlashCommandNumberOption
|
||||||
extends ApplicationCommandNumericOptionMinMaxValueMixin,
|
extends
|
||||||
|
ApplicationCommandNumericOptionMinMaxValueMixin,
|
||||||
ApplicationCommandOptionWithChoicesMixin<number>,
|
ApplicationCommandOptionWithChoicesMixin<number>,
|
||||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
ApplicationCommandOptionWithAutocompleteMixin {}
|
||||||
|
|||||||
@@ -69,5 +69,4 @@ export class SlashCommandStringOption extends ApplicationCommandOptionBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface SlashCommandStringOption
|
export interface SlashCommandStringOption
|
||||||
extends ApplicationCommandOptionWithChoicesMixin<string>,
|
extends ApplicationCommandOptionWithChoicesMixin<string>, ApplicationCommandOptionWithAutocompleteMixin {}
|
||||||
ApplicationCommandOptionWithAutocompleteMixin {}
|
|
||||||
|
|||||||
@@ -64,17 +64,17 @@
|
|||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -68,25 +68,25 @@
|
|||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "workspace:^",
|
"@discordjs/ws": "workspace:^",
|
||||||
"@sapphire/snowflake": "^3.5.3",
|
"@sapphire/snowflake": "^3.5.5",
|
||||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "^0.38.33"
|
"discord-api-types": "^0.38.40"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ import {
|
|||||||
import type { WebhooksAPI } from './webhook.js';
|
import type { WebhooksAPI } from './webhook.js';
|
||||||
|
|
||||||
export interface CreateInteractionResponseOptions
|
export interface CreateInteractionResponseOptions
|
||||||
extends APIInteractionResponseCallbackData,
|
extends APIInteractionResponseCallbackData, RESTPostAPIInteractionCallbackQuery {
|
||||||
RESTPostAPIInteractionCallbackQuery {
|
|
||||||
files?: RawFile[];
|
files?: RawFile[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -58,18 +58,18 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@types/prompts": "^2.4.9",
|
"@types/prompts": "^2.4.9",
|
||||||
"@types/validate-npm-package-name": "^4.0.2",
|
"@types/validate-npm-package-name": "^4.0.2",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"terser": "^5.31.0",
|
"terser": "^5.46.0",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.1.0",
|
"prettier": "^3.1.0",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"zod": "^3.23.8"
|
"zod": "^3.23.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,31 +73,31 @@
|
|||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "^1.2.3",
|
"@discordjs/ws": "^1.2.3",
|
||||||
"@sapphire/snowflake": "3.5.3",
|
"@sapphire/snowflake": "3.5.3",
|
||||||
"discord-api-types": "^0.38.33",
|
"discord-api-types": "^0.38.40",
|
||||||
"fast-deep-equal": "3.1.3",
|
"fast-deep-equal": "3.1.3",
|
||||||
"lodash.snakecase": "4.1.1",
|
"lodash.snakecase": "4.1.1",
|
||||||
"magic-bytes.js": "^1.10.0",
|
"magic-bytes.js": "^1.13.0",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.21.3"
|
"undici": "6.23.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/docgen": "workspace:^",
|
"@discordjs/docgen": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^16.18.105",
|
"@types/node": "^16.18.126",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
||||||
"@typescript-eslint/parser": "^8.2.0",
|
"@typescript-eslint/parser": "^8.56.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"dtslint": "4.2.1",
|
"dtslint": "4.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-formatter-pretty": "^5.0.0",
|
"eslint-formatter-pretty": "^5.0.0",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsd": "^0.31.1",
|
"tsd": "^0.31.1",
|
||||||
"tslint": "6.1.3",
|
"tslint": "6.1.3",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ class Invite extends Base {
|
|||||||
if (!guild.members.me) throw new DiscordjsError(ErrorCodes.GuildUncachedMe);
|
if (!guild.members.me) throw new DiscordjsError(ErrorCodes.GuildUncachedMe);
|
||||||
return Boolean(
|
return Boolean(
|
||||||
this.channel?.permissionsFor(this.client.user).has(PermissionFlagsBits.ManageChannels, false) ||
|
this.channel?.permissionsFor(this.client.user).has(PermissionFlagsBits.ManageChannels, false) ||
|
||||||
guild.members.me.permissions.has(PermissionFlagsBits.ManageGuild),
|
guild.members.me.permissions.has(PermissionFlagsBits.ManageGuild),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -711,8 +711,8 @@ class Message extends Base {
|
|||||||
get editable() {
|
get editable() {
|
||||||
const precheck = Boolean(
|
const precheck = Boolean(
|
||||||
this.author.id === this.client.user.id &&
|
this.author.id === this.client.user.id &&
|
||||||
(!this.guild || this.channel?.viewable) &&
|
(!this.guild || this.channel?.viewable) &&
|
||||||
this.reference?.type !== MessageReferenceType.Forward,
|
this.reference?.type !== MessageReferenceType.Forward,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Regardless of permissions thread messages cannot be edited if
|
// Regardless of permissions thread messages cannot be edited if
|
||||||
@@ -820,12 +820,12 @@ class Message extends Base {
|
|||||||
const { channel } = this;
|
const { channel } = this;
|
||||||
return Boolean(
|
return Boolean(
|
||||||
channel?.type === ChannelType.GuildAnnouncement &&
|
channel?.type === ChannelType.GuildAnnouncement &&
|
||||||
!this.flags.has(MessageFlags.Crossposted) &&
|
!this.flags.has(MessageFlags.Crossposted) &&
|
||||||
this.reference?.type !== MessageReferenceType.Forward &&
|
this.reference?.type !== MessageReferenceType.Forward &&
|
||||||
this.type === MessageType.Default &&
|
this.type === MessageType.Default &&
|
||||||
!this.poll &&
|
!this.poll &&
|
||||||
channel.viewable &&
|
channel.viewable &&
|
||||||
channel.permissionsFor(this.client.user)?.has(bitfield, false),
|
channel.permissionsFor(this.client.user)?.has(bitfield, false),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
254
packages/discord.js/typings/index.d.ts
vendored
254
packages/discord.js/typings/index.d.ts
vendored
@@ -340,8 +340,9 @@ export type ActionRowComponentData = MessageActionRowComponentData | ModalAction
|
|||||||
|
|
||||||
export type ActionRowComponent = MessageActionRowComponent | ModalActionRowComponent;
|
export type ActionRowComponent = MessageActionRowComponent | ModalActionRowComponent;
|
||||||
|
|
||||||
export interface ActionRowData<ComponentType extends JSONEncodable<APIComponentInActionRow> | ActionRowComponentData>
|
export interface ActionRowData<
|
||||||
extends BaseComponentData {
|
ComponentType extends JSONEncodable<APIComponentInActionRow> | ActionRowComponentData,
|
||||||
|
> extends BaseComponentData {
|
||||||
components: readonly ComponentType[];
|
components: readonly ComponentType[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1097,8 +1098,7 @@ type AsyncEventIteratorDisposability =
|
|||||||
ReturnType<typeof EventEmitter.on> extends AsyncDisposable ? AsyncDisposable : {};
|
ReturnType<typeof EventEmitter.on> extends AsyncDisposable ? AsyncDisposable : {};
|
||||||
/** @internal */
|
/** @internal */
|
||||||
interface AsyncEventIterator<Params extends any[]>
|
interface AsyncEventIterator<Params extends any[]>
|
||||||
extends AsyncIterableIterator<Params>,
|
extends AsyncIterableIterator<Params>, AsyncEventIteratorDisposability {
|
||||||
AsyncEventIteratorDisposability {
|
|
||||||
[Symbol.asyncIterator](): AsyncEventIterator<Params>;
|
[Symbol.asyncIterator](): AsyncEventIterator<Params>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1504,11 +1504,10 @@ export class PrimaryEntryPointCommandInteraction<
|
|||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable-next-line no-empty-interface
|
// tslint:disable-next-line no-empty-interface
|
||||||
export interface DMChannel
|
export interface DMChannel extends Omit<
|
||||||
extends Omit<
|
TextBasedChannelFields<false, true>,
|
||||||
TextBasedChannelFields<false, true>,
|
'bulkDelete' | 'fetchWebhooks' | 'createWebhook' | 'setRateLimitPerUser' | 'setNSFW'
|
||||||
'bulkDelete' | 'fetchWebhooks' | 'createWebhook' | 'setRateLimitPerUser' | 'setNSFW'
|
> {}
|
||||||
> {}
|
|
||||||
export class DMChannel extends BaseChannel {
|
export class DMChannel extends BaseChannel {
|
||||||
private constructor(client: Client<true>, data?: RawDMChannelData);
|
private constructor(client: Client<true>, data?: RawDMChannelData);
|
||||||
public flags: Readonly<ChannelFlagsBitField>;
|
public flags: Readonly<ChannelFlagsBitField>;
|
||||||
@@ -2393,9 +2392,9 @@ export interface AwaitMessageCollectorOptionsParams<
|
|||||||
ComponentType extends MessageComponentType,
|
ComponentType extends MessageComponentType,
|
||||||
Cached extends boolean = boolean,
|
Cached extends boolean = boolean,
|
||||||
> extends Pick<
|
> extends Pick<
|
||||||
InteractionCollectorOptions<MappedInteractionTypes<Cached>[ComponentType]>,
|
InteractionCollectorOptions<MappedInteractionTypes<Cached>[ComponentType]>,
|
||||||
keyof AwaitMessageComponentOptions<any>
|
keyof AwaitMessageComponentOptions<any>
|
||||||
> {
|
> {
|
||||||
componentType?: ComponentType;
|
componentType?: ComponentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2805,14 +2804,13 @@ export interface TextInputModalData extends BaseModalData<ComponentType.TextInpu
|
|||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SelectMenuModalData<Cached extends CacheType = CacheType>
|
export interface SelectMenuModalData<Cached extends CacheType = CacheType> extends BaseModalData<
|
||||||
extends BaseModalData<
|
| ComponentType.ChannelSelect
|
||||||
| ComponentType.ChannelSelect
|
| ComponentType.MentionableSelect
|
||||||
| ComponentType.MentionableSelect
|
| ComponentType.RoleSelect
|
||||||
| ComponentType.RoleSelect
|
| ComponentType.StringSelect
|
||||||
| ComponentType.StringSelect
|
| ComponentType.UserSelect
|
||||||
| ComponentType.UserSelect
|
> {
|
||||||
> {
|
|
||||||
channels?: ReadonlyCollection<
|
channels?: ReadonlyCollection<
|
||||||
Snowflake,
|
Snowflake,
|
||||||
CacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel>
|
CacheTypeReducer<Cached, GuildBasedChannel, APIInteractionDataResolvedChannel>
|
||||||
@@ -2911,8 +2909,9 @@ export class ModalSubmitFields<Cached extends CacheType = CacheType> {
|
|||||||
public getUploadedFiles(customId: string, required?: boolean): ReadonlyCollection<Snowflake, Attachment> | null;
|
public getUploadedFiles(customId: string, required?: boolean): ReadonlyCollection<Snowflake, Attachment> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModalMessageModalSubmitInteraction<Cached extends CacheType = CacheType>
|
export interface ModalMessageModalSubmitInteraction<
|
||||||
extends ModalSubmitInteraction<Cached> {
|
Cached extends CacheType = CacheType,
|
||||||
|
> extends ModalSubmitInteraction<Cached> {
|
||||||
message: Message<BooleanCache<Cached>>;
|
message: Message<BooleanCache<Cached>>;
|
||||||
channelId: Snowflake;
|
channelId: Snowflake;
|
||||||
update(
|
update(
|
||||||
@@ -2998,19 +2997,18 @@ export class OAuth2Guild extends BaseGuild {
|
|||||||
public permissions: Readonly<PermissionsBitField>;
|
public permissions: Readonly<PermissionsBitField>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PartialGroupDMChannel
|
export interface PartialGroupDMChannel extends Omit<
|
||||||
extends Omit<
|
TextBasedChannelFields<false, false>,
|
||||||
TextBasedChannelFields<false, false>,
|
| 'bulkDelete'
|
||||||
| 'bulkDelete'
|
| 'send'
|
||||||
| 'send'
|
| 'sendTyping'
|
||||||
| 'sendTyping'
|
| 'createMessageCollector'
|
||||||
| 'createMessageCollector'
|
| 'awaitMessages'
|
||||||
| 'awaitMessages'
|
| 'fetchWebhooks'
|
||||||
| 'fetchWebhooks'
|
| 'createWebhook'
|
||||||
| 'createWebhook'
|
| 'setRateLimitPerUser'
|
||||||
| 'setRateLimitPerUser'
|
| 'setNSFW'
|
||||||
| 'setNSFW'
|
> {}
|
||||||
> {}
|
|
||||||
export class PartialGroupDMChannel extends BaseChannel {
|
export class PartialGroupDMChannel extends BaseChannel {
|
||||||
private constructor(client: Client<true>, data: RawPartialGroupDMChannelData);
|
private constructor(client: Client<true>, data: RawPartialGroupDMChannelData);
|
||||||
public type: ChannelType.GroupDM;
|
public type: ChannelType.GroupDM;
|
||||||
@@ -3045,20 +3043,19 @@ export interface DefaultReactionEmoji {
|
|||||||
name: string | null;
|
name: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ThreadOnlyChannel
|
export interface ThreadOnlyChannel extends Omit<
|
||||||
extends Omit<
|
TextBasedChannelFields,
|
||||||
TextBasedChannelFields,
|
| 'send'
|
||||||
| 'send'
|
| 'lastMessage'
|
||||||
| 'lastMessage'
|
| 'lastPinAt'
|
||||||
| 'lastPinAt'
|
| 'bulkDelete'
|
||||||
| 'bulkDelete'
|
| 'sendTyping'
|
||||||
| 'sendTyping'
|
| 'createMessageCollector'
|
||||||
| 'createMessageCollector'
|
| 'awaitMessages'
|
||||||
| 'awaitMessages'
|
| 'createMessageComponentCollector'
|
||||||
| 'createMessageComponentCollector'
|
| 'awaitMessageComponent'
|
||||||
| 'awaitMessageComponent'
|
| 'messages'
|
||||||
| 'messages'
|
> {}
|
||||||
> {}
|
|
||||||
export abstract class ThreadOnlyChannel extends GuildChannel {
|
export abstract class ThreadOnlyChannel extends GuildChannel {
|
||||||
public type: ChannelType.GuildForum | ChannelType.GuildMedia;
|
public type: ChannelType.GuildForum | ChannelType.GuildMedia;
|
||||||
public threads: GuildForumThreadManager;
|
public threads: GuildForumThreadManager;
|
||||||
@@ -3838,8 +3835,10 @@ export interface PrivateThreadChannel extends ThreadChannel<false> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// tslint:disable-next-line no-empty-interface
|
// tslint:disable-next-line no-empty-interface
|
||||||
export interface ThreadChannel<ThreadOnly extends boolean = boolean>
|
export interface ThreadChannel<ThreadOnly extends boolean = boolean> extends Omit<
|
||||||
extends Omit<TextBasedChannelFields<true>, 'fetchWebhooks' | 'createWebhook' | 'setNSFW'> {}
|
TextBasedChannelFields<true>,
|
||||||
|
'fetchWebhooks' | 'createWebhook' | 'setNSFW'
|
||||||
|
> {}
|
||||||
export class ThreadChannel<ThreadOnly extends boolean = boolean> extends BaseChannel {
|
export class ThreadChannel<ThreadOnly extends boolean = boolean> extends BaseChannel {
|
||||||
private constructor(guild: Guild, data: RawThreadChannelData, client?: Client<true>);
|
private constructor(guild: Guild, data: RawThreadChannelData, client?: Client<true>);
|
||||||
public archived: boolean | null;
|
public archived: boolean | null;
|
||||||
@@ -5381,8 +5380,10 @@ export interface PartialTextBasedChannelFields<InGuild extends boolean = boolean
|
|||||||
send(options: string | MessagePayload | MessageCreateOptions): Promise<Message<InGuild>>;
|
send(options: string | MessagePayload | MessageCreateOptions): Promise<Message<InGuild>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TextBasedChannelFields<InGuild extends boolean = boolean, InDM extends boolean = boolean>
|
export interface TextBasedChannelFields<
|
||||||
extends PartialTextBasedChannelFields<InGuild> {
|
InGuild extends boolean = boolean,
|
||||||
|
InDM extends boolean = boolean,
|
||||||
|
> extends PartialTextBasedChannelFields<InGuild> {
|
||||||
lastMessageId: Snowflake | null;
|
lastMessageId: Snowflake | null;
|
||||||
get lastMessage(): Message | null;
|
get lastMessage(): Message | null;
|
||||||
lastPinTimestamp: number | null;
|
lastPinTimestamp: number | null;
|
||||||
@@ -5583,24 +5584,30 @@ export interface ApplicationCommandAttachmentOption extends BaseApplicationComma
|
|||||||
type: ApplicationCommandOptionType.Attachment;
|
type: ApplicationCommandOptionType.Attachment;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandAutocompleteNumericOption
|
export interface ApplicationCommandAutocompleteNumericOption extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: CommandOptionNumericResolvableType;
|
type: CommandOptionNumericResolvableType;
|
||||||
minValue?: number;
|
minValue?: number;
|
||||||
maxValue?: number;
|
maxValue?: number;
|
||||||
autocomplete: true;
|
autocomplete: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandAutocompleteStringOption
|
export interface ApplicationCommandAutocompleteStringOption extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: ApplicationCommandOptionType.String;
|
type: ApplicationCommandOptionType.String;
|
||||||
minLength?: number;
|
minLength?: number;
|
||||||
maxLength?: number;
|
maxLength?: number;
|
||||||
autocomplete: true;
|
autocomplete: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandAutocompleteNumericOptionData
|
export interface ApplicationCommandAutocompleteNumericOptionData extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: CommandOptionNumericResolvableType;
|
type: CommandOptionNumericResolvableType;
|
||||||
minValue?: number;
|
minValue?: number;
|
||||||
min_value?: number;
|
min_value?: number;
|
||||||
@@ -5609,8 +5616,10 @@ export interface ApplicationCommandAutocompleteNumericOptionData
|
|||||||
autocomplete: true;
|
autocomplete: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandAutocompleteStringOptionData
|
export interface ApplicationCommandAutocompleteStringOptionData extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: ApplicationCommandOptionType.String;
|
type: ApplicationCommandOptionType.String;
|
||||||
minLength?: number;
|
minLength?: number;
|
||||||
min_length?: number;
|
min_length?: number;
|
||||||
@@ -5619,15 +5628,19 @@ export interface ApplicationCommandAutocompleteStringOptionData
|
|||||||
autocomplete: true;
|
autocomplete: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandChoicesData<Type extends string | number = string | number>
|
export interface ApplicationCommandChoicesData<Type extends string | number = string | number> extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: CommandOptionChoiceResolvableType;
|
type: CommandOptionChoiceResolvableType;
|
||||||
choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
|
choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
|
||||||
autocomplete?: false;
|
autocomplete?: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApplicationCommandChoicesOption<Type extends string | number = string | number>
|
export interface ApplicationCommandChoicesOption<Type extends string | number = string | number> extends Omit<
|
||||||
extends Omit<BaseApplicationCommandOptionsData, 'autocomplete'> {
|
BaseApplicationCommandOptionsData,
|
||||||
|
'autocomplete'
|
||||||
|
> {
|
||||||
type: CommandOptionChoiceResolvableType;
|
type: CommandOptionChoiceResolvableType;
|
||||||
choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
|
choices?: readonly ApplicationCommandOptionChoiceData<Type>[];
|
||||||
autocomplete?: false;
|
autocomplete?: false;
|
||||||
@@ -5805,14 +5818,20 @@ export interface AutoModerationTriggerMetadata {
|
|||||||
mentionRaidProtectionEnabled: boolean;
|
mentionRaidProtectionEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction>
|
export interface AwaitMessageComponentOptions<Interaction extends CollectedMessageInteraction> extends Omit<
|
||||||
extends Omit<MessageComponentCollectorOptions<Interaction>, 'max' | 'maxComponents' | 'maxUsers'> {}
|
MessageComponentCollectorOptions<Interaction>,
|
||||||
|
'max' | 'maxComponents' | 'maxUsers'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface ModalSubmitInteractionCollectorOptions<Interaction extends ModalSubmitInteraction>
|
export interface ModalSubmitInteractionCollectorOptions<Interaction extends ModalSubmitInteraction> extends Omit<
|
||||||
extends Omit<InteractionCollectorOptions<Interaction>, 'channel' | 'message' | 'guild' | 'interactionType'> {}
|
InteractionCollectorOptions<Interaction>,
|
||||||
|
'channel' | 'message' | 'guild' | 'interactionType'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface AwaitModalSubmitOptions<Interaction extends ModalSubmitInteraction>
|
export interface AwaitModalSubmitOptions<Interaction extends ModalSubmitInteraction> extends Omit<
|
||||||
extends Omit<ModalSubmitInteractionCollectorOptions<Interaction>, 'max' | 'maxComponents' | 'maxUsers'> {
|
ModalSubmitInteractionCollectorOptions<Interaction>,
|
||||||
|
'max' | 'maxComponents' | 'maxUsers'
|
||||||
|
> {
|
||||||
time: number;
|
time: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6200,8 +6219,9 @@ export interface BaseInteractionResolvedData<Cached extends CacheType = CacheTyp
|
|||||||
users?: ReadonlyCollection<Snowflake, User>;
|
users?: ReadonlyCollection<Snowflake, User>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommandInteractionResolvedData<Cached extends CacheType = CacheType>
|
export interface CommandInteractionResolvedData<
|
||||||
extends BaseInteractionResolvedData<Cached> {
|
Cached extends CacheType = CacheType,
|
||||||
|
> extends BaseInteractionResolvedData<Cached> {
|
||||||
messages?: ReadonlyCollection<Snowflake, CacheTypeReducer<Cached, Message, APIMessage>>;
|
messages?: ReadonlyCollection<Snowflake, CacheTypeReducer<Cached, Message, APIMessage>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7240,11 +7260,15 @@ export type CollectedMessageInteraction<Cached extends CacheType = CacheType> =
|
|||||||
ModalSubmitInteraction
|
ModalSubmitInteraction
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export interface MessageComponentCollectorOptions<Interaction extends CollectedMessageInteraction>
|
export interface MessageComponentCollectorOptions<Interaction extends CollectedMessageInteraction> extends Omit<
|
||||||
extends Omit<InteractionCollectorOptions<Interaction>, 'channel' | 'message' | 'guild' | 'interactionType'> {}
|
InteractionCollectorOptions<Interaction>,
|
||||||
|
'channel' | 'message' | 'guild' | 'interactionType'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface MessageChannelComponentCollectorOptions<Interaction extends CollectedMessageInteraction>
|
export interface MessageChannelComponentCollectorOptions<Interaction extends CollectedMessageInteraction> extends Omit<
|
||||||
extends Omit<InteractionCollectorOptions<Interaction>, 'channel' | 'guild' | 'interactionType'> {}
|
InteractionCollectorOptions<Interaction>,
|
||||||
|
'channel' | 'guild' | 'interactionType'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface MessageInteractionMetadata {
|
export interface MessageInteractionMetadata {
|
||||||
id: Snowflake;
|
id: Snowflake;
|
||||||
@@ -7280,25 +7304,24 @@ export interface MessageMentionOptions {
|
|||||||
|
|
||||||
export type MessageMentionTypes = 'roles' | 'users' | 'everyone';
|
export type MessageMentionTypes = 'roles' | 'users' | 'everyone';
|
||||||
|
|
||||||
export interface MessageSnapshot
|
export interface MessageSnapshot extends Partialize<
|
||||||
extends Partialize<
|
Message,
|
||||||
Message,
|
null,
|
||||||
null,
|
Exclude<
|
||||||
Exclude<
|
keyof Message,
|
||||||
keyof Message,
|
| 'attachments'
|
||||||
| 'attachments'
|
| 'client'
|
||||||
| 'client'
|
| 'components'
|
||||||
| 'components'
|
| 'content'
|
||||||
| 'content'
|
| 'createdTimestamp'
|
||||||
| 'createdTimestamp'
|
| 'editedTimestamp'
|
||||||
| 'editedTimestamp'
|
| 'embeds'
|
||||||
| 'embeds'
|
| 'flags'
|
||||||
| 'flags'
|
| 'mentions'
|
||||||
| 'mentions'
|
| 'stickers'
|
||||||
| 'stickers'
|
| 'type'
|
||||||
| 'type'
|
>
|
||||||
>
|
> {}
|
||||||
> {}
|
|
||||||
|
|
||||||
export interface BaseMessageOptions {
|
export interface BaseMessageOptions {
|
||||||
content?: string;
|
content?: string;
|
||||||
@@ -7340,8 +7363,7 @@ export interface MessageCreateOptions extends BaseMessageOptionsWithPoll {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildForumThreadMessageCreateOptions
|
export interface GuildForumThreadMessageCreateOptions
|
||||||
extends BaseMessageOptions,
|
extends BaseMessageOptions, Pick<MessageCreateOptions, 'flags' | 'stickers'> {}
|
||||||
Pick<MessageCreateOptions, 'flags' | 'stickers'> {}
|
|
||||||
|
|
||||||
export interface MessageEditAttachmentData {
|
export interface MessageEditAttachmentData {
|
||||||
id: Snowflake;
|
id: Snowflake;
|
||||||
@@ -7549,18 +7571,20 @@ export interface PartialDMChannel extends Partialize<DMChannel, null, null, 'las
|
|||||||
|
|
||||||
export interface PartialGuildMember extends Partialize<GuildMember, 'joinedAt' | 'joinedTimestamp' | 'pending'> {}
|
export interface PartialGuildMember extends Partialize<GuildMember, 'joinedAt' | 'joinedTimestamp' | 'pending'> {}
|
||||||
|
|
||||||
export interface PartialMessage<InGuild extends boolean = boolean>
|
export interface PartialMessage<InGuild extends boolean = boolean> extends Partialize<
|
||||||
extends Partialize<Message<InGuild>, 'type' | 'system' | 'pinned' | 'tts', 'content' | 'cleanContent' | 'author'> {}
|
Message<InGuild>,
|
||||||
|
'type' | 'system' | 'pinned' | 'tts',
|
||||||
|
'content' | 'cleanContent' | 'author'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface PartialMessageReaction extends Partialize<MessageReaction, 'count'> {}
|
export interface PartialMessageReaction extends Partialize<MessageReaction, 'count'> {}
|
||||||
|
|
||||||
export interface PartialPoll
|
export interface PartialPoll extends Partialize<
|
||||||
extends Partialize<
|
Poll,
|
||||||
Poll,
|
'allowMultiselect' | 'layoutType' | 'expiresTimestamp',
|
||||||
'allowMultiselect' | 'layoutType' | 'expiresTimestamp',
|
null,
|
||||||
null,
|
'question' | 'message' | 'answers'
|
||||||
'question' | 'message' | 'answers'
|
> {
|
||||||
> {
|
|
||||||
question: { text: null };
|
question: { text: null };
|
||||||
message: PartialMessage;
|
message: PartialMessage;
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
@@ -7571,8 +7595,11 @@ export interface PartialPollAnswer extends Partialize<PollAnswer, 'emoji' | 'tex
|
|||||||
readonly poll: PartialPoll;
|
readonly poll: PartialPoll;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PartialGuildScheduledEvent
|
export interface PartialGuildScheduledEvent extends Partialize<
|
||||||
extends Partialize<GuildScheduledEvent, 'userCount', 'status' | 'privacyLevel' | 'name' | 'entityType'> {}
|
GuildScheduledEvent,
|
||||||
|
'userCount',
|
||||||
|
'status' | 'privacyLevel' | 'name' | 'entityType'
|
||||||
|
> {}
|
||||||
|
|
||||||
export interface PartialThreadMember extends Partialize<ThreadMember, 'flags' | 'joinedAt' | 'joinedTimestamp'> {}
|
export interface PartialThreadMember extends Partialize<ThreadMember, 'flags' | 'joinedAt' | 'joinedTimestamp'> {}
|
||||||
|
|
||||||
@@ -7912,8 +7939,7 @@ export interface WebhookMessageEditOptions extends MessageEditOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface InteractionEditReplyOptions
|
export interface InteractionEditReplyOptions
|
||||||
extends WebhookMessageEditOptions,
|
extends WebhookMessageEditOptions, Pick<BaseMessageOptionsWithPoll, 'poll'> {
|
||||||
Pick<BaseMessageOptionsWithPoll, 'poll'> {
|
|
||||||
message?: MessageResolvable | '@original';
|
message?: MessageResolvable | '@original';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7921,8 +7947,10 @@ export interface WebhookFetchMessageOptions {
|
|||||||
threadId?: Snowflake;
|
threadId?: Snowflake;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebhookMessageCreateOptions
|
export interface WebhookMessageCreateOptions extends Omit<
|
||||||
extends Omit<MessageCreateOptions, 'nonce' | 'reply' | 'stickers' | 'forward'> {
|
MessageCreateOptions,
|
||||||
|
'nonce' | 'reply' | 'stickers' | 'forward'
|
||||||
|
> {
|
||||||
username?: string;
|
username?: string;
|
||||||
avatarURL?: string;
|
avatarURL?: string;
|
||||||
threadId?: Snowflake;
|
threadId?: Snowflake;
|
||||||
|
|||||||
@@ -68,15 +68,15 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/jsdoc-to-markdown": "^7.0.6",
|
"@types/jsdoc-to-markdown": "^7.0.6",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -55,23 +55,23 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord-api-types": "^0.38.33"
|
"discord-api-types": "^0.38.40"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^16.18.105",
|
"@types/node": "^16.18.126",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -697,7 +697,6 @@ export function email<Email extends string>(
|
|||||||
*/
|
*/
|
||||||
export function email<Email extends string>(email: Email, headers?: Record<string, string | readonly string[]>) {
|
export function email<Email extends string>(email: Email, headers?: Record<string, string | readonly string[]>) {
|
||||||
if (headers) {
|
if (headers) {
|
||||||
// eslint-disable-next-line n/prefer-global/url-search-params
|
|
||||||
const searchParams = new URLSearchParams(
|
const searchParams = new URLSearchParams(
|
||||||
Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value])),
|
Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value])),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -72,23 +72,23 @@
|
|||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@discordjs/ws": "workspace:^",
|
"@discordjs/ws": "workspace:^",
|
||||||
"discord-api-types": "^0.38.33"
|
"discord-api-types": "^0.38.40"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -50,15 +50,15 @@
|
|||||||
"tslib": "^2.6.3"
|
"tslib": "^2.6.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -68,25 +68,25 @@
|
|||||||
"@discordjs/rest": "workspace:^",
|
"@discordjs/rest": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.21.1"
|
"undici": "6.23.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@types/supertest": "^6.0.2",
|
"@types/supertest": "^6.0.2",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"supertest": "^7.0.0",
|
"supertest": "^7.2.2",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -86,12 +86,12 @@
|
|||||||
"@discordjs/collection": "workspace:^",
|
"@discordjs/collection": "workspace:^",
|
||||||
"@discordjs/util": "workspace:^",
|
"@discordjs/util": "workspace:^",
|
||||||
"@sapphire/async-queue": "^1.5.3",
|
"@sapphire/async-queue": "^1.5.3",
|
||||||
"@sapphire/snowflake": "^3.5.3",
|
"@sapphire/snowflake": "^3.5.5",
|
||||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "^0.38.33",
|
"discord-api-types": "^0.38.40",
|
||||||
"magic-bytes.js": "^1.10.0",
|
"magic-bytes.js": "^1.13.0",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.21.3"
|
"undici": "6.23.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
@@ -101,12 +101,12 @@
|
|||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.5.4",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -229,8 +229,10 @@ export interface APIRequest {
|
|||||||
route: string;
|
route: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ResponseLike
|
export interface ResponseLike extends Pick<
|
||||||
extends Pick<Response, 'arrayBuffer' | 'bodyUsed' | 'headers' | 'json' | 'ok' | 'status' | 'statusText' | 'text'> {
|
Response,
|
||||||
|
'arrayBuffer' | 'bodyUsed' | 'headers' | 'json' | 'ok' | 'status' | 'statusText' | 'text'
|
||||||
|
> {
|
||||||
body: Readable | ReadableStream | null;
|
body: Readable | ReadableStream | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.1",
|
||||||
"@discordjs/api-extractor-model": "workspace:^",
|
"@discordjs/api-extractor-model": "workspace:^",
|
||||||
"@discordjs/api-extractor-utils": "workspace:^",
|
"@discordjs/api-extractor-utils": "workspace:^",
|
||||||
"@microsoft/tsdoc": "0.14.2",
|
"@microsoft/tsdoc": "0.14.2",
|
||||||
@@ -68,22 +68,22 @@
|
|||||||
"@vercel/postgres": "^0.9.0",
|
"@vercel/postgres": "^0.9.0",
|
||||||
"commander": "^12.1.0",
|
"commander": "^12.1.0",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"undici": "6.21.1",
|
"undici": "6.23.0",
|
||||||
"yaml": "^2.5.0"
|
"yaml": "^2.8.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@turbo/gen": "^2.0.14",
|
"@turbo/gen": "^2.8.10",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"env-cmd": "^10.1.0",
|
"env-cmd": "^10.1.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.2.4",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.0.14",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -63,14 +63,14 @@
|
|||||||
"@react-icons/all-files": "^4.1.0",
|
"@react-icons/all-files": "^4.1.0",
|
||||||
"@storybook/addon-essentials": "^8.1.5",
|
"@storybook/addon-essentials": "^8.1.5",
|
||||||
"@storybook/addon-interactions": "^8.1.5",
|
"@storybook/addon-interactions": "^8.1.5",
|
||||||
"@storybook/addon-links": "^8.1.5",
|
"@storybook/addon-links": "^8.6.17",
|
||||||
"@storybook/addon-styling": "^1.3.7",
|
"@storybook/addon-styling": "^1.3.7",
|
||||||
"@storybook/blocks": "^8.1.5",
|
"@storybook/blocks": "^8.1.5",
|
||||||
"@storybook/react": "^8.1.5",
|
"@storybook/react": "^8.6.17",
|
||||||
"@storybook/react-vite": "^8.1.5",
|
"@storybook/react-vite": "^8.6.17",
|
||||||
"@storybook/testing-library": "^0.2.2",
|
"@storybook/testing-library": "^0.2.2",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.28",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@unocss/eslint-plugin": "^0.60.4",
|
"@unocss/eslint-plugin": "^0.60.4",
|
||||||
"@unocss/reset": "^0.60.4",
|
"@unocss/reset": "^0.60.4",
|
||||||
@@ -78,14 +78,14 @@
|
|||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"chromatic": "^11.5.0",
|
"chromatic": "^11.5.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"storybook": "^8.1.5",
|
"storybook": "^8.6.17",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"unocss": "^0.60.4",
|
"unocss": "^0.60.4",
|
||||||
"vite": "^5.2.12",
|
"vite": "^5.2.12",
|
||||||
"vite-plugin-dts": "^3.9.1",
|
"vite-plugin-dts": "^3.9.1",
|
||||||
|
|||||||
@@ -62,24 +62,24 @@
|
|||||||
"homepage": "https://discord.js.org",
|
"homepage": "https://discord.js.org",
|
||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"discord-api-types": "^0.38.33"
|
"discord-api-types": "^0.38.40"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^16.18.105",
|
"@types/node": "^16.18.126",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsd": "^0.31.1",
|
"tsd": "^0.31.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.0.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -64,14 +64,14 @@
|
|||||||
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
"funding": "https://github.com/discordjs/discord.js?sponsor",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/ws": "^8.5.12",
|
"@types/ws": "^8.5.12",
|
||||||
"discord-api-types": "^0.38.33",
|
"discord-api-types": "^0.38.40",
|
||||||
"prism-media": "^1.3.5",
|
"prism-media": "^1.3.5",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.19.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.6",
|
"@babel/core": "^7.29.0",
|
||||||
"@babel/preset-env": "^7.24.6",
|
"@babel/preset-env": "^7.29.0",
|
||||||
"@babel/preset-typescript": "^7.24.6",
|
"@babel/preset-typescript": "^7.24.6",
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
@@ -80,17 +80,17 @@
|
|||||||
"@types/node": "^18.19.130",
|
"@types/node": "^18.19.130",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"jest-websocket-mock": "^2.5.0",
|
"jest-websocket-mock": "^2.5.0",
|
||||||
"mock-socket": "^9.3.1",
|
"mock-socket": "^9.3.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"tweetnacl": "^1.0.3",
|
"tweetnacl": "^1.0.3",
|
||||||
"typescript": "~5.5.4"
|
"typescript": "~5.8.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
|
|||||||
@@ -79,28 +79,28 @@
|
|||||||
"@sapphire/async-queue": "^1.5.3",
|
"@sapphire/async-queue": "^1.5.3",
|
||||||
"@types/ws": "^8.5.12",
|
"@types/ws": "^8.5.12",
|
||||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||||
"discord-api-types": "^0.38.33",
|
"discord-api-types": "^0.38.40",
|
||||||
"tslib": "^2.6.3",
|
"tslib": "^2.6.3",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.19.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@discordjs/api-extractor": "workspace:^",
|
"@discordjs/api-extractor": "workspace:^",
|
||||||
"@discordjs/scripts": "workspace:^",
|
"@discordjs/scripts": "workspace:^",
|
||||||
"@favware/cliff-jumper": "^4.1.0",
|
"@favware/cliff-jumper": "^4.1.0",
|
||||||
"@types/node": "^18.19.45",
|
"@types/node": "^18.19.130",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.0.5",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-version-injector": "^1.2.1",
|
"esbuild-plugin-version-injector": "^1.2.1",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-neon": "^0.1.62",
|
"eslint-config-neon": "^0.1.62",
|
||||||
"eslint-formatter-pretty": "^6.0.1",
|
"eslint-formatter-pretty": "^6.0.1",
|
||||||
"mock-socket": "^9.3.1",
|
"mock-socket": "^9.3.1",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.8.1",
|
||||||
"tsd": "^0.31.1",
|
"tsd": "^0.31.1",
|
||||||
"tsup": "^8.2.4",
|
"tsup": "^8.5.1",
|
||||||
"turbo": "^2.0.14",
|
"turbo": "^2.8.10",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.8.3",
|
||||||
"undici": "6.21.3",
|
"undici": "6.23.0",
|
||||||
"vitest": "^2.0.5",
|
"vitest": "^2.0.5",
|
||||||
"zlib-sync": "^0.1.10"
|
"zlib-sync": "^0.1.10"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,22 +2,21 @@ import type { Awaitable } from '@discordjs/util';
|
|||||||
import type { APIGatewayBotInfo } from 'discord-api-types/v10';
|
import type { APIGatewayBotInfo } from 'discord-api-types/v10';
|
||||||
import type { SessionInfo, WebSocketManager, WebSocketManagerOptions } from '../../ws/WebSocketManager.js';
|
import type { SessionInfo, WebSocketManager, WebSocketManagerOptions } from '../../ws/WebSocketManager.js';
|
||||||
|
|
||||||
export interface FetchingStrategyOptions
|
export interface FetchingStrategyOptions extends Pick<
|
||||||
extends Pick<
|
WebSocketManagerOptions,
|
||||||
WebSocketManagerOptions,
|
| 'compression'
|
||||||
| 'compression'
|
| 'encoding'
|
||||||
| 'encoding'
|
| 'handshakeTimeout'
|
||||||
| 'handshakeTimeout'
|
| 'helloTimeout'
|
||||||
| 'helloTimeout'
|
| 'identifyProperties'
|
||||||
| 'identifyProperties'
|
| 'initialPresence'
|
||||||
| 'initialPresence'
|
| 'intents'
|
||||||
| 'intents'
|
| 'largeThreshold'
|
||||||
| 'largeThreshold'
|
| 'readyTimeout'
|
||||||
| 'readyTimeout'
|
| 'token'
|
||||||
| 'token'
|
| 'useIdentifyCompression'
|
||||||
| 'useIdentifyCompression'
|
| 'version'
|
||||||
| 'version'
|
> {
|
||||||
> {
|
|
||||||
readonly gatewayInformation: APIGatewayBotInfo;
|
readonly gatewayInformation: APIGatewayBotInfo;
|
||||||
readonly shardCount: number;
|
readonly shardCount: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,8 +195,7 @@ export interface OptionalWebSocketManagerOptions {
|
|||||||
export interface WebSocketManagerOptions extends OptionalWebSocketManagerOptions, RequiredWebSocketManagerOptions {}
|
export interface WebSocketManagerOptions extends OptionalWebSocketManagerOptions, RequiredWebSocketManagerOptions {}
|
||||||
|
|
||||||
export interface CreateWebSocketManagerOptions
|
export interface CreateWebSocketManagerOptions
|
||||||
extends Partial<OptionalWebSocketManagerOptions>,
|
extends Partial<OptionalWebSocketManagerOptions>, RequiredWebSocketManagerOptions {}
|
||||||
RequiredWebSocketManagerOptions {}
|
|
||||||
|
|
||||||
export interface ManagerShardEventsMap {
|
export interface ManagerShardEventsMap {
|
||||||
[WebSocketShardEvents.Closed]: [code: number, shardId: number];
|
[WebSocketShardEvents.Closed]: [code: number, shardId: number];
|
||||||
|
|||||||
8573
pnpm-lock.yaml
generated
8573
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user