Samtino
Samtino
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
https://github.com/xxerick/CrowBot-Remade/blob/main/index.js I'm guessing this is the bot...this is v12
34 replies
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
Then you don't have any version of DiscordJS installed
34 replies
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
I fixed my typo GatewayIntentBits
34 replies
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
Or knowing what version of DJS you're on
34 replies
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
But again, this is only a guess without seeing the code
34 replies
DIAdiscord.js - Imagine an app
Created by Incontrolable on 4/21/2025 in #djs-questions
Crow baot
You're defining Discord.Intents.FLAGS, you should instead be importing GatewayIntentBits and doing GatewayIntentBits.DirectMessages (guessing since I can't see the whole code, just 1 line) However, if you want to keep it your current way, FLAGS wouldn't be all caps...iirc it's all lowercase
34 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
No. Because as Vinny said, your problem is with your caching of commands to client.commands or with your handling of interactionCreate events This is just to not get blocked from Discord for API spam
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
Just run the script manually on your own computer then push the update to the bot. It doesn't matter who/where the "deploy" script is run, it just has to be the same commands and the same token. As what you're doing is sending a list of commands to Discord for them to populate in the app
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
Looks like you're still updating your commands every restart Srarted refreshing 12 application (/) commands. That should be in a completely different launch script like npm run deploy rather than npm run start
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
They might be scraping and selling bot tokens to make money off their free "users"
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
It's a risk you run with a free host. If you're not paying them, then you're not a customer. You're a product. So your code (most importantly, your token) shouldn't be thought of as secure.
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
But I love giving my discord bot token to a hosting company that is farming bot tokens to raid/spam millions of users simultaneously
212 replies
DIAdiscord.js - Imagine an app
Created by TheActualGamer1YT on 4/15/2025 in #djs-questions
How would I fix this code?
Also show the entire error message, not just the description of it
212 replies
DIAdiscord.js - Imagine an app
Created by Blazing on 4/15/2025 in #djs-questions
Pinging Roles on interaction reply messages
This controls if a user/role mention actually pings said users/roles
7 replies
DIAdiscord.js - Imagine an app
Created by Woah on 4/7/2025 in #djs-questions
String Select Menu Builder
This seems like more of a suggestion for the DDev server. The actual functionality of Discord is out of DiscordJS's hands. It's just an API Library, not a Discord product
10 replies
DIAdiscord.js - Imagine an app
Created by thiago on 4/6/2025 in #djs-questions
Passing data between interactions
Shoot wrong one. Not this
7 replies
DIAdiscord.js - Imagine an app
Created by Anxiety101 on 4/5/2025 in #djs-questions
Tutorial Slash Command
I'm sorry. The DJS guide is one of the best made guides for an npm package I've ever seen (maybe other than a frontend framework like Auth.js competes)
43 replies
DIAdiscord.js - Imagine an app
Created by Anxiety101 on 4/5/2025 in #djs-questions
Tutorial Slash Command
"none of it works" is user error, not an error of the guide
43 replies
DIAdiscord.js - Imagine an app
Created by Anxiety101 on 4/5/2025 in #djs-questions
Tutorial Slash Command
the guide definitely works. thats how i learned how to use the library. but if you put code into a file OTHER than your index.js, then you need to do something in index.js to load that file. your code only does what you tell it to. it doesn't magically know that commands/utility/ping.js is a command file unless you tell it somewhere to load it as a command file, etc..etc..etc
43 replies
DIAdiscord.js - Imagine an app
Created by Anxiety101 on 4/5/2025 in #djs-questions
Tutorial Slash Command
You can also just sleep on it and ask again tomorrow. Getting frustrated with code not working can sometimes just need a "fresh pair of eyes" and just try again later to figure out
43 replies