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
- 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!show code !
ok
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
} their
{
"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"
}
just curious, is your file extension not JSON
wym
You trying to parse a .json file but your config is a .js
tbh i have no clue what that
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
he's not in a json that what I mean
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
it was missing a colon
oh damn im blind then