Samtino
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
I don't know what it is for you. It could be in your index.js unless you moved it out into events/interactionCreate.js or something similar
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
C. Idk
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
A. It's a bug with Discord...try restarting your app or trying on desktop/web
B. There's something happening before you send your interaction to your command file...can you send your file that contains your
client.on('interactionCreate')
?85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
What do you mean dots?
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
Unless something else is wrong (which nothing is here) then it should work
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
Then you're done. That error is fixed
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
You still need to import MessageFlags. You're only importing SlashCommandBuilder
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
You need to import MessageFlags. It's an enum for numbers
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
Did you not import MessageFlags?
85 replies
DIAdiscord.js - Imagine an app
•Created by Skullfromroblox on 4/29/2025 in #djs-questions
How to add "ephemeral message" code to my code
What's the error?
85 replies
DIAdiscord.js - Imagine an app
•Created by 'Hz 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 'Hz 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 'Hz on 4/21/2025 in #djs-questions
Crow baot
I fixed my typo
GatewayIntentBits
34 replies
DIAdiscord.js - Imagine an app
•Created by 'Hz 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 'Hz 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 'Hz 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 lowercase34 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 spam212 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