discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

Hello, I need help with my bot. It’s an automatic selling bot that I created back when Discord.js

Hello, I need help with my bot.
It’s an automatic selling bot that I created back when Discord.js v13 was the standard.
Now everything has updated to v14 and some parts stopped working.
Here are the issues: ...

cant get guilds?

interacts dont give me a .guild only a .guildId cache does not have this guild nor can i fetch it (DiscordAPIError[10004]: Unknown Guild)...

Help — Collector not catching ModalSubmitInteraction

Hey, I’m building a paginator and I’m using a collector for the navigation buttons. That part works fine. But I also want to use a modal (showModal) for a “go to page” feature The problem: I added isModalSubmit() handling inside the same collector, but it never fires when I submit the modal....

Function to get Component Data by ID

I saw that there is a way to pass a numeric ID to a message component, which serves as an identifier to recognize an element, is it possible to get it with some function? That already exists of course or do I need to implement it if I need it?

Unknown Node type

Well Not understanding after updating to 14.22 getting someshort of unknown error . ``` 1|exchanger-main | 2025-09-17 03:02:05 +00:00: Unknown node type: heading { 1|exchanger-main | 2025-09-17 03:02:05 +00:00: level: 3, 1|exchanger-main | 2025-09-17 03:02:05 +00:00: content: [...

Can someone help me with the bot in java script?

Can someone help me with the bot in java script?

How to get rid of [Circular *1]

Hi yall I am making a command that has to check whether the person that runs it has a certain role, and if they do, they continue. The problem arises with getting the roles, for some reason it says cirular instead of the information that is supposed to show up.

Problem with bot not registering new commands

Hi! I have a pretty basic setup with 3 commands, however those commands aren't registering but instead commands from my previous usage appear instead.

Select Menu Reset

how can I reset a select menu after someone picks an option and I show them a modal? Since I already replied with the modal, I can’t use interaction.update(). I just want the menu to go back to default (no option selected) without having edited tag to the original message.

Differentiation between bot user and webhook

Currently i have if (message.author.bot) return; to make my bot not interact with messages from other bots. How can i improve that to allow it to interact with webhook messages but not bot messages?...

Mention a command in a message content ?

Is it possible to mention a command in a message content ? Just like you can with roles, people and channels ? I think I have seen this in some embed but I'm unsure how to do it.

Modal window - select

Hello everyone, please tell me, is it already possible to use select in a modal window? If yes - please send an example. If not - please let me know when this possibility will appear?...

Mixing commonJS and ES6

Is there any point in me using es6 and mixing it with discordJS? Meaning I will use import and require. Is discordjs ES6 compatible with regards to using import? Currently I have discordjs files saved as .cjs files...

Give out XP when someone succesfully bumps server

Hi! So i want to give users XP when they bump the server. I atm got this (ids hardcoreds to test, where msg id is an "Bump done! 👍"message): ```ts const guild = await client.guilds.fetch('1350811442856726559'); const channel = await guild.channels.fetch('1350813813842116619');...

Discord Overwrite environment

Hey all.. I've something special - maybe I'm trying to build a symfony like environment where I have the standard where the default bot (ready to run) is in and a custom folder where I can overwrite the structure or extend it. Is this possible or has someone done this?...

Question about cache

I know 12.5.3 isn’t supported anymore but i was wondering how guild members it cache by default ? Cause with fetchallmembers to false it still cached everyone in the server