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
PAdventures2y ago
#Be right back in a few
souji
souji2y ago
cannot reproduce on v14 maybe try to uninstall and re-install djs
PAdventures
PAdventures2y ago
k