discord-fs
discord-fs copied to clipboard
Cannot startup !
> [email protected] start
> tsc --build tsconfig.json && node index.js
node_modules/discord.js/typings/index.d.ts:477:14 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<Cached>'.
477 ): Promise<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:480:27 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'CollectedInteraction<CacheType>'.
Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
480 ): InteractionCollector<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:480:27 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<Cached>'.
480 ): InteractionCollector<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1660:42 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'CollectedMessageInteraction<CacheType>'.
Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
1660 } & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1660:42 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<Cached>'.
1660 } & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1665:49 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'CollectedMessageInteraction<CacheType>'.
Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
1665 } & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1665:49 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<Cached>'.
1665 } & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1669:35 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'CollectedInteraction<CacheType>'.
Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
1669 InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1669:35 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<Cached>'.
1669 InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1733:14 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<InGuild>'.
1733 ): Promise<MappedInteractionTypes<InGuild>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1738:27 - error TS2344: Type 'MappedInteractionTypes<InGuild>[T]' does not satisfy the constraint 'CollectedInteraction<CacheType>'.
Type 'MappedInteractionTypes<InGuild>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
1738 ): InteractionCollector<MappedInteractionTypes<InGuild>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:1738:27 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<InGuild>'.
1738 ): InteractionCollector<MappedInteractionTypes<InGuild>[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:3795:14 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<boolean>'.
3795 ): Promise<MappedInteractionTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:3803:27 - error TS2344: Type 'MappedInteractionTypes<boolean>[T]' does not satisfy the constraint 'CollectedInteraction<CacheType>'.
Type 'MappedInteractionTypes<boolean>[T]' is not assignable to type 'ButtonInteraction<CacheType>'.
3803 ): InteractionCollector<MappedInteractionTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/discord.js/typings/index.d.ts:3803:27 - error TS2536: Type 'T' cannot be used to index type 'MappedInteractionTypes<boolean>'.
3803 ): InteractionCollector<MappedInteractionTypes[T]>;
~~~~~~~~~~~~~~~~~~~~~~~~~
Found 15 errors.
OS: Fedora 37