can someone help me with this error

undefined:9 "premiumLogChannelId": "1156654102047117474", ^ SyntaxError: Expected ',' or '}' after property value in JSON at position 374 at JSON.parse (<anonymous>) at file:///home/container/dist/config.js:2:21
15 Replies
d.js toolkit
d.js toolkitβ€’9mo 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!
axiprime
axiprimeβ€’9mo ago
show code !
𝓒π“ͺ𝓢
ok
axiprime
axiprimeβ€’9mo ago
hide your token
𝓒π“ͺ𝓢
{ "botToken": "", "guildId": "1156271080781131806", "autoCodeNameBoth": "LONEFUTxCAM", "autoGiveawayChannelId": "1156653590937612318", "autoCodeChannelId": "1156653277342072942", "autoCodePingRoleId": "1156271461586178129", "codePermsChannelId": "1156271558843707412" "premiumLogChannelId": "1156654102047117474", "codePermsRoleId": "1156271465155543060", "codeLogChannelId": "1156654102047117474", "boosterChannelId": "1156654500594065419", "boosterRoleId": "1156271492196212856", "memberRoleId": "1156271451947671644", "suggestionChannelId": "1156654976936988672", "dailySpinChannelId": "1156654500594065419", "logChannelId": "1156654102047117474", "premiumRoleId": "1156271466111840386", "premiumChannelId": "1156271554980753478", "founderRoleId": "1156271406028423186", "botpermsChannelId": "1156271554980753478", "botpermsRoleId": "1156271464161480704", "adminChannelId": "1156654102047117474", "moderatorRoleId": "1156271439868067891", "tradingChannelId": "1156655232084889610, "coinFlipChannelId": "1156654538024026153", "commandsChannelId": "1156271554980753478", "giveawayPingRoleId": "1156271459090579666", "appCheckToken": "", "madfutEmail": "", "madfutPassword": "", "shoppySecret": "SECRET_HERE", "shopLogChannelId": "CHANNEL_ID_HERE"
} their
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
{ "botToken": "", "guildId": "1156271080781131806", "autoCodeNameBoth": "LONEFUTxCAM", "autoGiveawayChannelId": "1156653590937612318", "autoCodeChannelId": "1156653277342072942", "autoCodePingRoleId": "1156271461586178129", "codePermsChannelId": "1156271558843707412", "premiumLogChannelId": "1156654102047117474", "codePermsRoleId": "1156271465155543060", "codeLogChannelId": "1156654102047117474", "boosterChannelId": "1156654500594065419", "boosterRoleId": "1156271492196212856", "memberRoleId": "1156271451947671644", "suggestionChannelId": "1156654976936988672", "dailySpinChannelId": "1156654500594065419", "logChannelId": "1156654102047117474", "premiumRoleId": "1156271466111840386", "premiumChannelId": "1156271554980753478", "founderRoleId": "1156271406028423186", "botpermsChannelId": "1156271554980753478", "botpermsRoleId": "1156271464161480704", "adminChannelId": "1156654102047117474", "moderatorRoleId": "1156271439868067891", "tradingChannelId": "1156655232084889610, "coinFlipChannelId": "1156654538024026153", "commandsChannelId": "1156271554980753478", "giveawayPingRoleId": "1156271459090579666", "appCheckToken": "", "madfutEmail": "", "madfutPassword": "", "shoppySecret": "SECRET_HERE", "shopLogChannelId": "CHANNEL_ID_HERE" }
axiprime
axiprimeβ€’9mo ago
just curious, is your file extension not JSON Thonk
𝓒π“ͺ𝓢
wym
axiprime
axiprimeβ€’9mo ago
You trying to parse a .json file but your config is a .js
𝓒π“ͺ𝓢
tbh i have no clue what that dogeHaHa
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
That's a pretty normal setup? You have a config in .json and parse it in .js you can also just require if you're using that
axiprime
axiprimeβ€’9mo ago
he's not in a json that what I mean
duck
duckβ€’9mo ago
presumably config.js is what's reading some config.json but none of this is really djs related the shown json doesn't appear to have any issues, so you should ensure the file is saved
πŸŒΊπŸ‡«πŸ‡· Shigu :3 🌺
it was missing a colon
𝓒π“ͺ𝓢
oh damn im blind then