This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.user.setActivity(`${client.guilds.size} Servers`, { | |
^ | |
TypeError: Cannot read property 'setActivity' of null | |
at Object.<anonymous> (B:\NODE\DISCORD\DISCORD.JS\TrueBot\src\index.js:15:13) | |
at Module._compile (module.js:653:30) | |
at Object.Module._extensions..js (module.js:664:10) | |
at Module.load (module.js:566:32) | |
at tryModuleLoad (module.js:506:12) | |
at Function.Module._load (module.js:498:3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); | |
const client = new Discord.Client(); | |
require("dotenv").config(); | |
const env = process.env; | |
const version = "v1.0.1 - 2018-10-18"; | |
const mainColor = "#7289DA"; | |
const github = "https://github.com/True-Coder-Ltd/TrueBot"; | |
client.login(env.TOKEN); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Discord = require("discord.js"); | |
const client = new Discord.Client({ | |
disableEveryone: true | |
}); | |
require("dotenv").config(); | |
const env = process.env; | |
const token = env.DISCORD_TOKEN; | |
const prefix = env.PREFIX; | |
client.login(token) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
}) | |
^ | |
SyntaxError: Unexpected token ) | |
at createScript (vm.js:80:10) | |
at Object.runInThisContext (vm.js:139:10) | |
at Module._compile (module.js:617:28) | |
at Object.Module._extensions..js (module.js:664:10) | |
at Module.load (module.js:566:32) | |
at tryModuleLoad (module.js:506:12) |