Skip to content

Commit

Permalink
docs(DiscordjsErrorCodes): Deprecate unused properties (#9790)
Browse files Browse the repository at this point in the history
docs(DiscordjsErrorCodes): deprecate unused properties

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] authored Sep 17, 2023
1 parent b6a2441 commit 4588e07
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/discord.js/src/errors/ErrorCodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @property {'WSNotOpen'} WSNotOpen
* <warn>This property is deprecated.</warn>
* @property {'ManagerDestroyed'} ManagerDestroyed
* <warn>This property is deprecated.</warn>
* @property {'BitFieldInvalid'} BitFieldInvalid
Expand Down Expand Up @@ -49,20 +50,29 @@
* @property {'InviteOptionsMissingChannel'} InviteOptionsMissingChannel
* @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
* @property {'FileNotFound'} FileNotFound
* @property {'UserBannerNotFetched'} UserBannerNotFetched
* <warn>This property is deprecated.</warn>
* @property {'UserNoDMChannel'} UserNoDMChannel
* @property {'VoiceNotStageChannel'} VoiceNotStageChannel
Expand All @@ -73,13 +83,16 @@
* @property {'ReqResourceType'} ReqResourceType
* @property {'ImageFormat'} ImageFormat
* <warn>This property is deprecated.</warn>
* @property {'ImageSize'} ImageSize
* <warn>This property is deprecated.</warn>
* @property {'MessageBulkDeleteType'} MessageBulkDeleteType
* @property {'MessageNonceType'} MessageNonceType
* @property {'MessageContentType'} MessageContentType
* @property {'SplitMaxLen'} SplitMaxLen
* <warn>This property is deprecated.</warn>
* @property {'BanResolveId'} BanResolveId
* @property {'FetchBanResolveId'} FetchBanResolveId
Expand Down Expand Up @@ -122,6 +135,7 @@
* @property {'ReactionResolveUser'} ReactionResolveUser
* @property {'VanityURL'} VanityURL
* <warn>This property is deprecated.</warn>
* @property {'InviteResolveCode'} InviteResolveCode
Expand Down
14 changes: 14 additions & 0 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3563,6 +3563,7 @@ export enum DiscordjsErrorCodes {
WSConnectionExists = 'WSConnectionExists',
/** @deprecated */
WSNotOpen = 'WSNotOpen',
/** @deprecated */
ManagerDestroyed = 'ManagerDestroyed',

BitFieldInvalid = 'BitFieldInvalid',
Expand Down Expand Up @@ -3593,20 +3594,29 @@ export enum DiscordjsErrorCodes {

InviteOptionsMissingChannel = 'InviteOptionsMissingChannel',

/** @deprecated */
ButtonLabel = 'ButtonLabel',
/** @deprecated */
ButtonURL = 'ButtonURL',
/** @deprecated */
ButtonCustomId = 'ButtonCustomId',

/** @deprecated */
SelectMenuCustomId = 'SelectMenuCustomId',
/** @deprecated */
SelectMenuPlaceholder = 'SelectMenuPlaceholder',
/** @deprecated */
SelectOptionLabel = 'SelectOptionLabel',
/** @deprecated */
SelectOptionValue = 'SelectOptionValue',
/** @deprecated */
SelectOptionDescription = 'SelectOptionDescription',

InteractionCollectorError = 'InteractionCollectorError',

FileNotFound = 'FileNotFound',

/** @deprecated */
UserBannerNotFetched = 'UserBannerNotFetched',
UserNoDMChannel = 'UserNoDMChannel',

Expand All @@ -3617,13 +3627,16 @@ export enum DiscordjsErrorCodes {

ReqResourceType = 'ReqResourceType',

/** @deprecated */
ImageFormat = 'ImageFormat',
/** @deprecated */
ImageSize = 'ImageSize',

MessageBulkDeleteType = 'MessageBulkDeleteType',
MessageNonceType = 'MessageNonceType',
MessageContentType = 'MessageContentType',

/** @deprecated */
SplitMaxLen = 'SplitMaxLen',

BanResolveId = 'BanResolveId',
Expand Down Expand Up @@ -3666,6 +3679,7 @@ export enum DiscordjsErrorCodes {

ReactionResolveUser = 'ReactionResolveUser',

/** @deprecated */
VanityURL = 'VanityURL',

InviteResolveCode = 'InviteResolveCode',
Expand Down

0 comments on commit 4588e07

Please sign in to comment.