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

Why does the APIButtonComponent not have a custom_id prop per default?

I know you can type assert it as APIButtonComponentWithCustomId but like why is this not in the APIButtonComponent type?

Thumbnail Component V2

Hello, is it possible to add a thumbnail in the new ContainerBuilder ? I found this code in the doc : ``` const exampleContainer = new ContainerBuilder() .setAccentColor(0x0099FF) .addTextDisplayComponents(...

How can I add a rich presence to my Electron application using Discord.js and Node.js?

Hi. I want my Electron application to have a rich presence integration that makes users of my application have a rich presence like the ones provided for most recent videogames, where it would say something like Playing <App Name>. Is there a way I can reach this goal using Discord.js? If not, what do you suggest to do for reaching this goal? By the way, I know there is the option of writing a Nodee.js addon for using the official Discord SDK, but I'm not good at using C++, to be honest....

snowflakes

How can I understand from snowflakes what type of role it is, channel or user?

Looking for someone to help me with some code including discord.js as well as api stuff

So I have a couple bots with code that just confusing me and I need help

Entitlement Update Event

Discord.js version: 15.0.0 Hello, I would appreciate any help/guidance around handling the EntitlementUpdate event. ...
No description

string select menu limits on containers

how many string select menus can theoretically be placed on a container?

I want to add custom (typed) events to the Client class.

So i have this class that extends the Client class and it just adds some utilities i use. I want to add a few more events to that extending class. Now usually this would be no problem as I just emit using the already baked-in EventEmitter in the Client class. However, I would like to additionally add typings using the same already integrated system that DJS uses. Is this even possible?...

Role color gradients.

Hello. Are role color gradient supported yet?...

DiscordAPIError[50001]: Missing Access, likely due to missing "send messages" permissions

Hi everyone! This is an error that I get approximately every few days for my 1500+ servers bot: https://pastebin.com/mpqvFGZz I suspect that this is occurring because the bot is trying to send a message in a channel that hasn't given it send messages permissions. I try to handle this case in my code with 2 ways: one with a universal try-catch that just prints the error and doesn't error out (which obviously doesn't work) and another like so: ```ts...

members.fetch limits

``` let fetched = await guild.members.fetch({ limit: 0, force: true, withPresences: false...

"Permission error. Make sure the user reconnects the connector and selects all the requested ... "

Permission error. Make sure the user reconnects the connector and selects all the requested scopes/permissions as next step. Im getting this error when trying to set permission overwrites on a channel. The relevant code is here, can anyone help with a working example or point out the error in my ways? https://github.com/purinton/architect/blob/master/tools/channel/set-permissions.mjs...

Error: Cannot find module '../configs/config.json'

This is happening in my index.js - but that line is in my index?
const { bot } = require('../configs/config.json');
const { bot } = require('../configs/config.json');
...
No description

I don't have the necessary parametres

```js const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const { seniorGuild } = require('../../configs/config.json'); const { bot } = require('../../configs/config.json'); ...

Check forwarded attachments

Currently we have a system to auto-react to any message that has an attachment However, when a message is forwarded and has an attachment, it doesn't get reacted to. Is there a way to fix this? I have attached the current code to detect if the message has an attachment ```typescript message.attachments.some(...

Error: Expected token to be set for this request, but none was present

Hello, I got this error from the well-running code. Since 6/25/2025, my running code is crashed.. I tried to fix it for over 2 days, I cant. Plz help me ...

Commands dont load

Whenever I create a new command, I have to remove my bot from the server and add it back. How can I fix this?

Unknown Interaction

LOGGING DiscordAPIError[10062]: Unknown interaction