Hi @AndriyMeleshko – have you verified that general is defined in server.js (and that it’s not short-circuiting with that if (!general) return? I’d be happy to take a look at your code if the project is public
I think the project may be private – when I followed the link I got the error that there was no project there. I’d be happy to take a look if you send me an invite to join the project!
No worries! Are you still getting the same error that you were before? I noticed after remixing that the package name in the package.json is throwing an invalid name error, I believe due to the í character. If you’re seeing the same error, that might at least partially resolve any issues you’re seeing!
Hello @mishavee Thank you very much!
It helped me:
discord/stream/stream.js
discord/stream/table.js
discord/stream/commands/del.js
discord/stream/commands/list.js
// server.js
Client.commandsDiscordp = new Discord.Collection();
const commandFilesStream = fs.readdirSync(’./discord/stream/commands’).filter(file => file.endsWith(’.js’));
for (const file of commandFilesStream) {
const command = require(./discord/stream/commands/${file});
Client.commandsDiscordp.set(command.name, command);
}