이세린

es6 isn't working. Import Discord error.

Showing 1 changed file with 6 additions and 6 deletions
...@@ -11,12 +11,12 @@ client.commands = new Discord.Collection(); ...@@ -11,12 +11,12 @@ client.commands = new Discord.Collection();
11 11
12 const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); 12 const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
13 13
14 -import breathe from './commands/breathe'; 14 +import breathe from './commands/breathe.js';
15 -import calm from './commands/calm'; 15 +import calm from './commands/calm.js';
16 -import chat from './commands/chat'; 16 +import chat from './commands/chat.js';
17 -import checklist from './commands/checklist'; 17 +import checklist from './commands/checklist.js';
18 -import cute from './commands/cute'; 18 +import cute from './commands/cute.js';
19 -import help from './commands/help'; 19 +import help from './commands/help.js';
20 20
21 for(const file of commandFiles){ 21 for(const file of commandFiles){
22 //const command = require(`./commands/${file}`); 22 //const command = require(`./commands/${file}`);
......