How can I fix the ChatInputCommandInteraction?

I'm making a command however the ChatInputCommandInteraction is not looking right and my command won't show up, how can I fix? This is the code of my command.
const {ChatInputCommandInteraction, SlashCommandBuilder,} = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Test the ping rate of the bot."),
/**
*
* @param {ChatInputCommandInteraction} interaction
*/
execute(interactin) {
interactin.reply({ content: ":bullet: Pong!", ephermal: true });
},
};
const {ChatInputCommandInteraction, SlashCommandBuilder,} = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Test the ping rate of the bot."),
/**
*
* @param {ChatInputCommandInteraction} interaction
*/
execute(interactin) {
interactin.reply({ content: ":bullet: Pong!", ephermal: true });
},
};
No description
7 Replies
d.js toolkit
d.js toolkit7mo 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! - Marked as resolved by staff
afp_d3vs
afp_d3vsOP7mo ago
How do I fix it in simple terms sorry im new to js and im not sure im just going off some youtube videos and docs i fixed it, its still that yellow colour So how can I use it? What do you mean Sorry im being a bitch but I genuinely dont know colour of ChatInputCommandInteraction is different than SlashCommandBuilder
afp_d3vs
afp_d3vsOP7mo ago
No description
afp_d3vs
afp_d3vsOP7mo ago
by my yt video that is teaching me, his code is like this, furthermore my command doesnt show up
afp_d3vs
afp_d3vsOP7mo ago
his is like that
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
afp_d3vs
afp_d3vsOP7mo ago
you can close i made the cmd
const {
ChatInputCommandInteraction,
SlashCommandBuilder,
} = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Test the ping rate of the bot."),
/**
*
* @param {ChatInputCommandInteraction} interaction
*/
execute(interactin) {
interactin.reply({
content: ":bullet: Pong!",
ephemeral: true,
});
},
};
const {
ChatInputCommandInteraction,
SlashCommandBuilder,
} = require("discord.js");

module.exports = {
data: new SlashCommandBuilder()
.setName("ping")
.setDescription("Test the ping rate of the bot."),
/**
*
* @param {ChatInputCommandInteraction} interaction
*/
execute(interactin) {
interactin.reply({
content: ":bullet: Pong!",
ephemeral: true,
});
},
};
Want results from more Discord servers?
Add your server