s3ntrical
s3ntrical
DIAdiscord.js - Imagine an app
Created by s3ntrical on 3/14/2025 in #djs-questions
discord.js won't play nice with ES:LINT
./node_modules/discord.js/typings/index.d.ts:1301:21
Type error: Type parameter declaration expected.

1299 | * If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
1300 | */
> 1301 | public getChannel<const Type extends ChannelType = ChannelType>(
| ^
1302 | name: string,
1303 | required: true,
1304 | channelTypes?: readonly Type[],
./node_modules/discord.js/typings/index.d.ts:1301:21
Type error: Type parameter declaration expected.

1299 | * If the user were to pass only one of those channel types, the `Extract<>` would resolve to `never`.
1300 | */
> 1301 | public getChannel<const Type extends ChannelType = ChannelType>(
| ^
1302 | name: string,
1303 | required: true,
1304 | channelTypes?: readonly Type[],
45 replies