Class DiscordjsError

Hierarchy

  • Error
    • DiscordjsError

Constructors

Properties

cause?: unknown
message: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Accessors

  • get name(): "Error [ClientInvalidOption]" | "Error [ClientInvalidProvidedShards]" | "Error [ClientMissingIntents]" | "Error [ClientNotReady]" | "Error [TokenInvalid]" | "Error [TokenMissing]" | "Error [ApplicationCommandPermissionsTokenMissing]" | "Error [WSCloseRequested]" | "Error [WSConnectionExists]" | "Error [WSNotOpen]" | "Error [ManagerDestroyed]" | "Error [BitFieldInvalid]" | "Error [ShardingInvalid]" | "Error [ShardingRequired]" | "Error [InvalidIntents]" | "Error [DisallowedIntents]" | "Error [ShardingNoShards]" | "Error [ShardingInProcess]" | "Error [ShardingInvalidEvalBroadcast]" | "Error [ShardingShardNotFound]" | "Error [ShardingAlreadySpawned]" | "Error [ShardingProcessExists]" | "Error [ShardingWorkerExists]" | "Error [ShardingReadyTimeout]" | "Error [ShardingReadyDisconnected]" | "Error [ShardingReadyDied]" | "Error [ShardingNoChildExists]" | "Error [ShardingShardMiscalculation]" | "Error [ColorRange]" | "Error [ColorConvert]" | "Error [InviteOptionsMissingChannel]" | "Error [ButtonLabel]" | "Error [ButtonURL]" | "Error [ButtonCustomId]" | "Error [SelectMenuCustomId]" | "Error [SelectMenuPlaceholder]" | "Error [SelectOptionLabel]" | "Error [SelectOptionValue]" | "Error [SelectOptionDescription]" | "Error [InteractionCollectorError]" | "Error [FileNotFound]" | "Error [UserBannerNotFetched]" | "Error [UserNoDMChannel]" | "Error [VoiceNotStageChannel]" | "Error [VoiceStateNotOwn]" | "Error [VoiceStateInvalidType]" | "Error [ReqResourceType]" | "Error [ImageFormat]" | "Error [ImageSize]" | "Error [MessageBulkDeleteType]" | "Error [MessageContentType]" | "Error [MessageNonceRequired]" | "Error [MessageNonceType]" | "Error [SplitMaxLen]" | "Error [BanResolveId]" | "Error [FetchBanResolveId]" | "Error [PruneDaysType]" | "Error [GuildChannelResolve]" | "Error [GuildVoiceChannelResolve]" | "Error [GuildChannelOrphan]" | "Error [GuildChannelUnowned]" | "Error [GuildOwned]" | "Error [GuildMembersTimeout]" | "Error [GuildUncachedMe]" | "Error [ChannelNotCached]" | "Error [StageChannelResolve]" | "Error [GuildScheduledEventResolve]" | "Error [FetchOwnerId]" | "Error [InvalidType]" | "Error [InvalidElement]" | "Error [MessageThreadParent]" | "Error [MessageExistingThread]" | "Error [ThreadInvitableType]" | "Error [WebhookMessage]" | "Error [WebhookTokenUnavailable]" | "Error [WebhookURLInvalid]" | "Error [WebhookApplication]" | "Error [MessageReferenceMissing]" | "Error [EmojiType]" | "Error [EmojiManaged]" | "Error [MissingManageGuildExpressionsPermission]" | "Error [MissingManageEmojisAndStickersPermission]" | "Error [NotGuildSticker]" | "Error [ReactionResolveUser]" | "Error [VanityURL]" | "Error [InviteResolveCode]" | "Error [InviteNotFound]" | "Error [DeleteGroupDMChannel]" | "Error [FetchGroupDMChannel]" | "Error [MemberFetchNonceLength]" | "Error [GlobalCommandPermissions]" | "Error [GuildUncachedEntityResolve]" | "Error [InteractionAlreadyReplied]" | "Error [InteractionNotReplied]" | "Error [InteractionEphemeralReplied]" | "Error [CommandInteractionOptionNotFound]" | "Error [CommandInteractionOptionType]" | "Error [CommandInteractionOptionEmpty]" | "Error [CommandInteractionOptionNoSubcommand]" | "Error [CommandInteractionOptionNoSubcommandGroup]" | "Error [AutocompleteInteractionOptionNoFocusedOption]" | "Error [ModalSubmitInteractionFieldNotFound]" | "Error [ModalSubmitInteractionFieldType]" | "Error [InvalidMissingScopes]" | "Error [InvalidScopesWithPermissions]" | "Error [NotImplemented]" | "Error [SweepFilterReturn]" | "Error [GuildForumMessageRequired]" | "Error [EntitlementCreateInvalidOwner]" | "Error [BulkBanUsersOptionEmpty]" | "Error [PollAlreadyExpired]"
  • Returns "Error [ClientInvalidOption]" | "Error [ClientInvalidProvidedShards]" | "Error [ClientMissingIntents]" | "Error [ClientNotReady]" | "Error [TokenInvalid]" | "Error [TokenMissing]" | "Error [ApplicationCommandPermissionsTokenMissing]" | "Error [WSCloseRequested]" | "Error [WSConnectionExists]" | "Error [WSNotOpen]" | "Error [ManagerDestroyed]" | "Error [BitFieldInvalid]" | "Error [ShardingInvalid]" | "Error [ShardingRequired]" | "Error [InvalidIntents]" | "Error [DisallowedIntents]" | "Error [ShardingNoShards]" | "Error [ShardingInProcess]" | "Error [ShardingInvalidEvalBroadcast]" | "Error [ShardingShardNotFound]" | "Error [ShardingAlreadySpawned]" | "Error [ShardingProcessExists]" | "Error [ShardingWorkerExists]" | "Error [ShardingReadyTimeout]" | "Error [ShardingReadyDisconnected]" | "Error [ShardingReadyDied]" | "Error [ShardingNoChildExists]" | "Error [ShardingShardMiscalculation]" | "Error [ColorRange]" | "Error [ColorConvert]" | "Error [InviteOptionsMissingChannel]" | "Error [ButtonLabel]" | "Error [ButtonURL]" | "Error [ButtonCustomId]" | "Error [SelectMenuCustomId]" | "Error [SelectMenuPlaceholder]" | "Error [SelectOptionLabel]" | "Error [SelectOptionValue]" | "Error [SelectOptionDescription]" | "Error [InteractionCollectorError]" | "Error [FileNotFound]" | "Error [UserBannerNotFetched]" | "Error [UserNoDMChannel]" | "Error [VoiceNotStageChannel]" | "Error [VoiceStateNotOwn]" | "Error [VoiceStateInvalidType]" | "Error [ReqResourceType]" | "Error [ImageFormat]" | "Error [ImageSize]" | "Error [MessageBulkDeleteType]" | "Error [MessageContentType]" | "Error [MessageNonceRequired]" | "Error [MessageNonceType]" | "Error [SplitMaxLen]" | "Error [BanResolveId]" | "Error [FetchBanResolveId]" | "Error [PruneDaysType]" | "Error [GuildChannelResolve]" | "Error [GuildVoiceChannelResolve]" | "Error [GuildChannelOrphan]" | "Error [GuildChannelUnowned]" | "Error [GuildOwned]" | "Error [GuildMembersTimeout]" | "Error [GuildUncachedMe]" | "Error [ChannelNotCached]" | "Error [StageChannelResolve]" | "Error [GuildScheduledEventResolve]" | "Error [FetchOwnerId]" | "Error [InvalidType]" | "Error [InvalidElement]" | "Error [MessageThreadParent]" | "Error [MessageExistingThread]" | "Error [ThreadInvitableType]" | "Error [WebhookMessage]" | "Error [WebhookTokenUnavailable]" | "Error [WebhookURLInvalid]" | "Error [WebhookApplication]" | "Error [MessageReferenceMissing]" | "Error [EmojiType]" | "Error [EmojiManaged]" | "Error [MissingManageGuildExpressionsPermission]" | "Error [MissingManageEmojisAndStickersPermission]" | "Error [NotGuildSticker]" | "Error [ReactionResolveUser]" | "Error [VanityURL]" | "Error [InviteResolveCode]" | "Error [InviteNotFound]" | "Error [DeleteGroupDMChannel]" | "Error [FetchGroupDMChannel]" | "Error [MemberFetchNonceLength]" | "Error [GlobalCommandPermissions]" | "Error [GuildUncachedEntityResolve]" | "Error [InteractionAlreadyReplied]" | "Error [InteractionNotReplied]" | "Error [InteractionEphemeralReplied]" | "Error [CommandInteractionOptionNotFound]" | "Error [CommandInteractionOptionType]" | "Error [CommandInteractionOptionEmpty]" | "Error [CommandInteractionOptionNoSubcommand]" | "Error [CommandInteractionOptionNoSubcommandGroup]" | "Error [AutocompleteInteractionOptionNoFocusedOption]" | "Error [ModalSubmitInteractionFieldNotFound]" | "Error [ModalSubmitInteractionFieldType]" | "Error [InvalidMissingScopes]" | "Error [InvalidScopesWithPermissions]" | "Error [NotImplemented]" | "Error [SweepFilterReturn]" | "Error [GuildForumMessageRequired]" | "Error [EntitlementCreateInvalidOwner]" | "Error [BulkBanUsersOptionEmpty]" | "Error [PollAlreadyExpired]"

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc