discord.js
Advanced tools
Comparing version 15.0.0-dev.1729080291-62fb9de9c to 15.0.0-dev.1729296707-3540c3176
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "discord.js", | ||
"version": "15.0.0-dev.1729080291-62fb9de9c", | ||
"version": "15.0.0-dev.1729296707-3540c3176", | ||
"description": "A powerful library for interacting with the Discord API", | ||
@@ -63,6 +63,6 @@ "main": "./src/index.js", | ||
"undici": "6.19.8", | ||
"@discordjs/rest": "^2.4.0", | ||
"@discordjs/formatters": "^0.5.0", | ||
"@discordjs/ws": "^2.0.0", | ||
"@discordjs/util": "^1.1.1", | ||
"@discordjs/ws": "^2.0.0" | ||
"@discordjs/rest": "^2.4.0" | ||
}, | ||
@@ -69,0 +69,0 @@ "devDependencies": { |
@@ -109,10 +109,2 @@ 'use strict'; | ||
/** | ||
* Shard helpers for the client (only if the process was spawned from a {@link ShardingManager}) | ||
* @type {?ShardClientUtil} | ||
*/ | ||
this.shard = process.env.SHARDING_MANAGER | ||
? ShardClientUtil.singleton(this, process.env.SHARDING_MANAGER_MODE) | ||
: null; | ||
/** | ||
* The user manager of this client | ||
@@ -175,2 +167,10 @@ * @type {UserManager} | ||
/** | ||
* Shard helpers for the client (only if the process was spawned from a {@link ShardingManager}) | ||
* @type {?ShardClientUtil} | ||
*/ | ||
this.shard = process.env.SHARDING_MANAGER | ||
? ShardClientUtil.singleton(this, process.env.SHARDING_MANAGER_MODE) | ||
: null; | ||
/** | ||
* The voice manager of the client | ||
@@ -419,8 +419,7 @@ * @type {ClientVoiceManager} | ||
* The average ping of all WebSocketShards | ||
* @type {number} | ||
* @type {?number} | ||
* @readonly | ||
*/ | ||
get ping() { | ||
const sum = this.pings.reduce((a, b) => a + b, 0); | ||
return sum / this.pings.size; | ||
return this.pings.size ? this.pings.reduce((a, b) => a + b, 0) / this.pings.size : null; | ||
} | ||
@@ -427,0 +426,0 @@ |
@@ -15,21 +15,4 @@ 'use strict'; | ||
* @property {'WSCloseRequested'} WSCloseRequested | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'WSConnectionExists'} WSConnectionExists | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'WSNotOpen'} WSNotOpen | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ManagerDestroyed'} ManagerDestroyed | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'BitFieldInvalid'} BitFieldInvalid | ||
* @property {'ShardingInvalid'} ShardingInvalid | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ShardingRequired'} ShardingRequired | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'InvalidIntents'} InvalidIntents | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'DisallowedIntents'} DisallowedIntents | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ShardingNoShards'} ShardingNoShards | ||
@@ -53,20 +36,2 @@ * @property {'ShardingInProcess'} ShardingInProcess | ||
* @property {'ButtonLabel'} ButtonLabel | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ButtonURL'} ButtonURL | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ButtonCustomId'} ButtonCustomId | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'SelectMenuCustomId'} SelectMenuCustomId | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'SelectMenuPlaceholder'} SelectMenuPlaceholder | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'SelectOptionLabel'} SelectOptionLabel | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'SelectOptionValue'} SelectOptionValue | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'SelectOptionDescription'} SelectOptionDescription | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'InteractionCollectorError'} InteractionCollectorError | ||
@@ -76,4 +41,2 @@ | ||
* @property {'UserBannerNotFetched'} UserBannerNotFetched | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'UserNoDMChannel'} UserNoDMChannel | ||
@@ -88,7 +51,2 @@ | ||
* @property {'ImageFormat'} ImageFormat | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'ImageSize'} ImageSize | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'MessageBulkDeleteType'} MessageBulkDeleteType | ||
@@ -99,5 +57,2 @@ * @property {'MessageContentType'} MessageContentType | ||
* @property {'SplitMaxLen'} SplitMaxLen | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'BanResolveId'} BanResolveId | ||
@@ -136,4 +91,2 @@ * @property {'FetchBanResolveId'} FetchBanResolveId | ||
* @property {'MissingManageGuildExpressionsPermission'} MissingManageGuildExpressionsPermission | ||
* @property {'MissingManageEmojisAndStickersPermission'} MissingManageEmojisAndStickersPermission | ||
* <warn>This property is deprecated. Use `MissingManageGuildExpressionsPermission` instead.</warn> | ||
* | ||
@@ -144,5 +97,2 @@ * @property {'NotGuildSticker'} NotGuildSticker | ||
* @property {'VanityURL'} VanityURL | ||
* <warn>This property is deprecated.</warn> | ||
* @property {'InviteResolveCode'} InviteResolveCode | ||
@@ -162,4 +112,2 @@ | ||
* @property {'InteractionNotReplied'} InteractionNotReplied | ||
* @property {'InteractionEphemeralReplied'} InteractionEphemeralReplied | ||
* <warn>This property is deprecated.</warn> | ||
@@ -203,13 +151,4 @@ * @property {'CommandInteractionOptionNotFound'} CommandInteractionOptionNotFound | ||
'WSCloseRequested', | ||
'WSConnectionExists', | ||
'WSNotOpen', | ||
'ManagerDestroyed', | ||
'BitFieldInvalid', | ||
'ShardingInvalid', | ||
'ShardingRequired', | ||
'InvalidIntents', | ||
'DisallowedIntents', | ||
'ShardingNoShards', | ||
@@ -233,12 +172,2 @@ 'ShardingInProcess', | ||
'ButtonLabel', | ||
'ButtonURL', | ||
'ButtonCustomId', | ||
'SelectMenuCustomId', | ||
'SelectMenuPlaceholder', | ||
'SelectOptionLabel', | ||
'SelectOptionValue', | ||
'SelectOptionDescription', | ||
'InteractionCollectorError', | ||
@@ -248,3 +177,2 @@ | ||
'UserBannerNotFetched', | ||
'UserNoDMChannel', | ||
@@ -259,5 +187,2 @@ | ||
'ImageFormat', | ||
'ImageSize', | ||
'MessageBulkDeleteType', | ||
@@ -268,4 +193,2 @@ 'MessageContentType', | ||
'SplitMaxLen', | ||
'BanResolveId', | ||
@@ -304,3 +227,2 @@ 'FetchBanResolveId', | ||
'MissingManageGuildExpressionsPermission', | ||
'MissingManageEmojisAndStickersPermission', | ||
@@ -311,4 +233,2 @@ 'NotGuildSticker', | ||
'VanityURL', | ||
'InviteResolveCode', | ||
@@ -328,3 +248,2 @@ | ||
'InteractionNotReplied', | ||
'InteractionEphemeralReplied', | ||
@@ -331,0 +250,0 @@ 'CommandInteractionOptionNotFound', |
@@ -29,3 +29,3 @@ 'use strict'; | ||
* they're missing all the data for a particular structure. See the "Partial Structures" topic on the | ||
* [guide](https://discordjs.guide/popular-topics/partials.html) for some | ||
* {@link https://discordjs.guide/popular-topics/partials.html guide} for some | ||
* important usage information, as partials require you to put checks in place when handling data. | ||
@@ -41,3 +41,3 @@ * @property {boolean} [failIfNotExists=true] The default value for {@link MessageReplyOptions#failIfNotExists} | ||
* @property {Function} [jsonTransformer] A function used to transform outgoing json data | ||
* @property {boolean} [enforceNonce=false] The default value for {@link MessageReplyOptions#enforceNonce} | ||
* @property {boolean} [enforceNonce=false] The default value for {@link MessageCreateOptions#enforceNonce} | ||
*/ | ||
@@ -44,0 +44,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1818950
40237