Problem with discord.ts #2897
-
First of all... I alway get this error message, can u help me with it: src/messaging/discord.ts:7:23 - error TS2306: File '/root/bot/node_modules/discord.js/src/structures/Message.d.ts' is not a module. 7 import {message} from 'discord.js/src/structures/Message'; src/messaging/discord.ts:169:19 - error TS7006: Parameter 'message' implicitly has an 'any' type. 169 .filter(message => message.reference?.messageId === botMessage?.id) src/messaging/discord.ts:215:24 - error TS2674: Constructor of class 'User' is protected and only accessible within the class declaration. 215 const user = await new Discord.User(client, { Maybe u can tell me how create a module file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You will need to join the discord for this, but look at the faq channel, this will probably help you |
Beta Was this translation helpful? Give feedback.
You will need to join the discord for this, but look at the faq channel, this will probably help you