discord.js - Imagine a 👻

DIA

discord.js - Imagine a 👻

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

Join

djs-questions

djs-voice

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

Discord Connection Question

Anyone is familiar with that?
No description

Is there a way to silence mentions inside of containers using Components V2?

I am writing a moderation bot using Components V2. The code in the screenshot I attached works pretty good however, it pings anyone mentioned in the container. I was wondering if there is a way to silence the pings while still mentioning the user.
No description

Partial high ping on some shards

Sometimes some shards have a very high ping for me. Unfortunately, I can't figure out why. I've already disabled individual events and some bot functions, but nothing has helped. Is there an event or function that could give me more information? Furthermore, these shards do not have significantly more users or guilds than the others.
No description

how does discordjs populate cache

like im trying to implement minimal cache using core libraries, wondering how does main lib populate all guilds/channels/roles on gateway connect? does it idk what, and is in any way request guild members used or such?

How to use Custom Emojis in Buttons and Embeds

How can I use some custom emojis in buttons and embeds that I create ? like the ones in the photos. Do I have to upload an emoji in the developer portal, then I can use it or something like that ?...
No description