help how to use SlashCommandBuilder without discordjs builders?

soo the terminal says SlashCommandBuilder isnt a thing when i replace every instance of @discordjs/builders.
11 Replies
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
this
const { SlashCommandBuilder } = require('@discordjs/builders');
const { SlashCommandBuilder } = require('@discordjs/builders');
i changed to this:
const { SlashCommandBuilder } = require('discord.js');
const { SlashCommandBuilder } = require('discord.js');
hello? please help me
monbrey
monbrey•3y ago
Did you update to v14? Run npm ls discord.js and tell me the output
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
ok well i did run npm install discord.js again oh
monbrey
monbrey•3y ago
That's not what I asked
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
im in 13.9 😦
monbrey
monbrey•3y ago
Yep
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
oof
monbrey
monbrey•3y ago
Use discord.js@latest or uninstall and reinstall it to update to v14
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
ok lemme try that thanks i ran npm ls discord.js again and it said 14.0.2
monbrey
monbrey•3y ago
Good
TheRealGodSpeedy
TheRealGodSpeedyOP•3y ago
nice i ran bot.js and its working the bot's online! wait....
Want results from more Discord servers?
Add your server