I've already searched around and i'm unable to find the answer to my dilemma. I'm running on node.js and javascript, but unfortunately i'm awful at coding because i'm just now starting out! please give me some tips if i've done anything wrong. anyway! Anytime someone tries to preform a command, this comes up, but my bot comes online. see here! so, I have tried to change the code and my code seemingly looks like this;
var Discord = require("discord.js")
const { promisify } = require("util");
const readdir = promisify(require("fs").readdir);
const Enmap = require("enmap");
var client = new Discord.Client();
Is there something i'm missing here? thank you in advance!
npm install discord.js? (See installation section of docs here.)discord.jsnow and even have tried uninstalling it. anything else that could be causing this problem! cheers!var Discord = require("discord.js") const { promisify } = require("util"); const readdir = promisify(require("fs").readdir); const Enmap = require("enmap"); var client = new Discord.Client(); client.on('ready', () => { client.user.setActivity('https://git.io/d.js-heroku', {type: 'WATCHING'}); }); client.config = require("./config.js"); client.logger = require("./modules/Logger"); require("./modules/functions.js")(client);Discordin any of your separate requires (likeconfig.js)? You'll also have to import it in there. Not really sure what's going on otherwise.