#Replit doesn't understand const?!
12 messages · Page 1 of 1 (latest)
this has nothing to do with discord.js. that is just a syntax error.
sorry
also, don't rely on chatgpt to write code for you especially if you have no idea what it means
?
your original message said you asked chatgpt before deleted
ok, so basically i have a chatgpt bot that worked perfectly fine. But for some reason now that i came back it just stopped working, i have no idea why
(replit says -
/home/runner/Nodejs/index.js:2
const { Client, IntentsBitField, GatewayIntentBits, Routes, InteractionWebhook } = require('discord.js');
^^^^^
SyntaxError: Unexpected token 'const' )
i made a chatgpt bot
#useful-servers
even though you might be using discord.js for your bot, the error isn't something we can help with. sorry
i found the problem