TypeError SlashCommandBuilder is not a constructor

const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
#djs-help-v14
3 Replies
PAdventures
PAdventuresOP3y ago
#Be right back in a few
souji
souji3y ago
cannot reproduce on v14 maybe try to uninstall and re-install djs
PAdventures
PAdventuresOP3y ago
k
Want results from more Discord servers?
Add your server