Class DiscordjsTypeError

Hierarchy

  • TypeError
    • DiscordjsTypeError

Constructors

Properties

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

Type declaration

stackTraceLimit: number

Accessors

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

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc