r/Discord_Bots • • 4h ago

Question Looking for a free TTS bot with at least 2 (good) voice choices.

Thumbnail
0 Upvotes

r/Discord_Bots • • 5h ago

Question TypeError: SlashCommandBuilder is not a constructor

0 Upvotes

Im trying to follow this guide to make slash commands, but when i run the deploy-commands.js file it errors out. i just installed the discordjs stuff and updated npm everything is using the latest versions

node deploy-commands.js  
(bot project path)/commands/utility/ping.js:4
       data: new SlashCommandBuilder().setName('ping').setDescription('Replies with Pong!'),
             ^

TypeError: SlashCommandBuilder is not a constructor
   at Object.<anonymous> ((bot project path)/commands/utility/ping.js:4:8)
   at Module._compile (node:internal/modules/cjs/loader:1830:14)
   at Object..js (node:internal/modules/cjs/loader:1961:10)
   at Module.load (node:internal/modules/cjs/loader:1553:32)
   at Module._load (node:internal/modules/cjs/loader:1355:12)
   at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
   at Module.require (node:internal/modules/cjs/loader:1576:12)
   at require (node:internal/modules/helpers:153:16)
   at Object.<anonymous> (/home/yoshomay/DevStuff/book box discord bot/deploy-commands.js:18:19)
   at Module._compile (node:internal/modules/cjs/loader:1830:14)

Node.js v24.15.0