A simple Discord bot using Discord.js v14 and ES6 modules. Feel free to clone it and build your own bot on top of it or just understand the library a bit better!
Hello i am try back do discord.js and try learn V14
I npm install discord.js fs dotenv.
I catch error on start: fs is not defined
if i change: import fs from 'fs';
as import {fs} from 'fs';
i get error: SyntaxError: The requested module 'fs' does not provide an export named 'fs'
How to fix this? Can you help me?