//These is the level.js const economy = require('../Schema/account'); //Calling the mongoose file async function level5(message) { message.channel.send("Working") //Should send this one } module.exports = { level5 } /* -------------------------------------- */ //These is the command_file.js const { MessageEmbed } = require('discord.js'); const levels = require('../../events/level'); module.exports = { name: "test", aliases: [""], description: "Testing", cooldown: 1, async execute(client, message, args, prefix) { if(message.author.id == "") { switch(this.name) { case "level5" : levels.level5(message); break; default: message.channel.send("Something went wrong") } } else { return message.reply("```Only the Developer Can use this command.```") } } }