Nirel
Nirel
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
I've run the deploy file, it works but inside the console tab it says "No command matching hi was found."
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
So I need to click the run button while in the deploy-commands.js?
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
If I press Run, all of the code should be run at the same time. App used: Replit
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
I've created that deploy-commands.js, or there's some missing code?
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
this?
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
There's no error for now, but I can't access the slash command
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
Ok
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
I've added
const { SlashCommandBuilder } = require("@discordjs/builders");
const { SlashCommandBuilder } = require("@discordjs/builders");
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
hi.js
const { SlashCommandBuilder } = require("@discordjs/builders");

module.exports = {
data: new SlashCommandBuilder()
.setName("hi")
.setDescription("Replies with Hello!"),
async execute(interaction) {
await interaction.reply("Hello!");
},
};

exports.name = "hi"
const { SlashCommandBuilder } = require("@discordjs/builders");

module.exports = {
data: new SlashCommandBuilder()
.setName("hi")
.setDescription("Replies with Hello!"),
async execute(interaction) {
await interaction.reply("Hello!");
},
};

exports.name = "hi"
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
It could run properly now, hold on I want to create a slash command
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
Should it be placed in index.js?
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
wait, lemme check
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
There's no error message rn, but the run button turn back to run once I clicked it (app used: replit)
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
brb
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
Fixed
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
config.json
{
"token": "token"
"clientId": "cID",
"guildId": "gID"
}
{
"token": "token"
"clientId": "cID",
"guildId": "gID"
}
29 replies
DIAdiscord.js - Imagine an app
Created by Nirel on 7/1/2023 in #djs-questions
Unexpected string in JSON
hold on
29 replies