how to get rid of ',' problem in vscode

it's this
No description
5 Replies
d.js toolkit
d.js toolkit17h ago
Tim Pun
Tim PunOP17h ago
async execute(interaction) {
async execute(interaction) {
b3ssel
b3ssel17h ago
put the , before or above that line you probably have a structure like this:
module.exports = {
data: new SlashCommandBuilder()
// slash command building stuff

async execute(interaction) {
// code stuff
}
};
module.exports = {
data: new SlashCommandBuilder()
// slash command building stuff

async execute(interaction) {
// code stuff
}
};
but since you are exporting an object, each key has to be separated by a comma
module.exports = {
data: new SlashCommandBuilder()
// slash command building stuff
, // <<< end of "data" key value, anything after or below is a new key value
async execute(interaction) {
// code stuff
}
};
module.exports = {
data: new SlashCommandBuilder()
// slash command building stuff
, // <<< end of "data" key value, anything after or below is a new key value
async execute(interaction) {
// code stuff
}
};
Tim Pun
Tim PunOP17h ago
oh, ok
d.js toolkit
d.js toolkit17h ago
The thread owner has marked this issue as solved.

Did you find this page helpful?