JS Problems with global Slash commands in DMs
Can someone help me with this? I have some global commands that appear on any server without the bot being added there, but they don't appear in people's DMs.
I'm using the latest versions of discord.js and nodejs, the commands are separated from their Index.js and it logs them correctly instantly, but they don't appear in the DMs.:crySparkle:...
context menu doesn't support ComponentV2 ?
I've tried sending message from context menu command with componentV2 but its throws
instead...
Invalid Form Body
Invalid Form Body
Discord Component V2 guide summary
https://www.notion.so/Discord-Componente-V2-20f3821bef47805c980fd33f02a91090?source=copy_link
Maybe it will help some, at least I learned how to use it....
Unexpected ValidationError when sending modal
After running
ConfigSession.send, Discord gets no response and I get the below error (which does not trace back to my program)
```ts
C:\Users\jerem\WebstormProjects\magic-bot\node_modules@sapphire\shapeshift\src\validators\NativeEnumValidator.ts:50
const casted = value as string | number;
^...Cannot find module './structures/PrimaryEntryPointCommandInteraction'
Situation:
I've tried to host a bot via Render which they throw err for
Cannot find module './structures/PrimaryEntryPointCommandInteraction'
Try on Local Code
After I try on local code, I also got present with the same error:
```javascript...Syncing
Idk why but it js won't sync I can send any files you may need to help me, It's made using app commands, I even made !loadcogs to load them but it still js isnt
Guys any suggestions on making dashboard for my discord bot
I want to integrate the dashboard and bot realtime
Error Ephermeral
Supplying "ephemeral" for interact ion response options is deprecated. Utilize flags ins tead.
(Use
node --trace-warnings ... to show where the wa rning was created)
Warning: Supplying "ephemeral" for interaction respon se options is deprecated. Utilize flags instead....Error: Expected token to be set for this request, but none was present
As of today, multiple devs have been reporting the error mentioned in the title.
In my case, the bot's code has not been changed for months and the error started occurring randomly earlier today. The token in use is valid.
The error seems to occur when the bot starts interacting with the discord API (e.g.: when calling
channel.setParent)....
ESM? TS? What should I use?
I am somewhat new to JS. Only have been using it for about a year now and have started getting into using lang files, modules, the whole nine yards. Recently I have heard about ESM and TS. I am wondering should I use them in my discord.js projects? I am looking for some insight, thank you.
Bot randomly going offline with no errors..
I have exactly the same issue like this person. I didnt change anything and suddenly it has this behavior. I dont get any errors at all, and the process is still running but not doing anything.''
(Note, I have other bots running aswell and they dont have this behavior.)
Is there a way to get info on what happens or possibly a fix for that?...

Need help with Component V2 layout (discord.js v14)
Hey! I'm working with Component V2 using the new builders like
ContainerBuilder, SectionBuilder, ThumbnailBuilder, etc. I'm trying to build a layout like this:
- A section with a thumbnail + header
- A separator
- Another section with ping stats text...Event Help
I dont know how events work and i want to make one where each time someone sends a message, it reads and sees if its that message. Its gonna have a prefix “!” and will look for something like “!message”. Can someone help me?
Attaching files
I have two bots with similar base code.
I have one bot that can attach files a specific local directory, so i know thats fine. The other wont, it also attaches as a file but i assume thats a symptom not a cause (i assume because there is an attachment error)
I have message content turned on in Developers portal, gateway intents are identical.
the role of the new bot is set as Admin so it should have permissions....

When is interaction "cached" for user context menu commands?
Hey all, I'm writing a user context menu command (alongside some other ones that already exist) and wanted to see if I could save myself from writing some code by assuming the interaction type is cached.
In what cases are interactions not cached?...
