halp

first 15 lines: const express = require("express"); const app = express(); app.listen(3000, () => { console.log("Project is running!"); }) app.get("/", (req, res) => { res.send("Hello world!"); }) const Discord = require("discord.js"); const client = new Discord.Client({intents: ["GUILDS", "GUILD_MESSAGES"]}); intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES], error code: /home/runner/bot-project/index.js:16 const triggerWords = ['ssa', 'supreme star amulet', 'green amulet']; ^^^^^ SyntaxError: Unexpected token 'const'
2 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
xyrioc
xyriocOP17mo ago
um is it not i posted assuming it is cuz discord bot and discord.js = node.js fr
Want results from more Discord servers?
Add your server