slash command not getting registerd

index.js - https://pastebin.com/v0UAU7g1 sample slash command - https://pastebin.com/U32EXgVN file structure - . ├── commands │   ├── helper │   │   ├── handleDirectMessage.js │   │   ├── handleMemberUpdate.js │   │   ├── intervalTimeoutRemove.js │   │   ├── leetcode.js │   │   └── run-migrations.js │   └── utility │   ├── approve.js │   ├── ping.js │   └── server.js ├── config.json ├── db.js ├── index.js ├── migrations │   └── 0000_create_users_table.js ├── models │   └── User.js ├── mydatabase.sqlite ├── package.json ├── package-lock.json └── payload └── leetcode.txt
Pastebin
const { token, clientId } = require('./config.json');const fs = req...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
const { SlashCommandBuilder } = require('discord.js');module.export...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
9 Replies
d.js toolkit
d.js toolkit2mo 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 OP
Auth
AuthOP2mo ago
lmk if you want more details im using vencord i reloaded my discord client im using nodemon bot have admin im the owner
Auth
AuthOP2mo ago
No description
Auth
AuthOP2mo ago
No description
treble/luna
treble/luna2mo ago
that is a horrible approach and will get you ratelimited which likely is your issue 1) You dont need to register your commands every time your bot starts, it is meant to be a separate file you run only when you make changes, hence why it uses rest 2) PUT overrides old commands, so you never have to delete them in the first place
Auth
AuthOP2mo ago
Oh- Any idea how long is this "rate limit" Aight 🫡
Papalo007
Papalo0072mo ago
how did u type out your tree like that? did u manually do it or did u use a tool
Auth
AuthOP2mo ago
tree Cli tool "tree -I 'node_modules'" So it ignored node_modules
Papalo007
Papalo0072mo ago
oh
Want results from more Discord servers?
Add your server