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

Kinda wanna start coding

I've recently been looking into coding! I'd like to try Javascript. In the past I've tried FreeCodeCamp but have had a lot of issues. Any advice?

Can you help me, how can I do it after he selects it and uncheck it?

Can you help me, how can I do it after he selects it and uncheck it?
No description

Containers

How do i make a container

@discordjs/rest: TypeError: Super expression must either be null or a function

I use @discordjs/rest (2.6.0) to post to my server once a day. Yesterday, I upgraded my project's dependencies. @vladfrangu/async_event_emitter was updated from 2.4.6 to 2.4.7. Today, posts fail with TypeError: Super expression must either be null or a function in @vladfrangu/async_event_emitter/node_modules/node-inspect-extracted/dist/inspect.js:2:44522 Anyone else seeing this? Guess I should pin async_event_emitter to 2.4.6?...

TextInputBuilder ValidationError

Hi, I can't seem to get TextInputBuilder v14.24.0. I keep getting the following error ```js ValidationError > s.string() Expected a string primitive...

Attempting to react to a message but it is throwing an error

the code in question is ```js const { EmbedBuilder, MessageFlags } = require("discord.js") require("dotenv").config()...

unknown interaction

Node version: v20.19.5 Discord.js version: discord.js@14.23.2 OS: Ubuntu So, when I try to run any bot, it throws the following error:...

components v2 embed

Hey guys, I found an issue with the components v2 embed whenever there’s a role mention or a user mention, it actually triggers a notification, unlike the old embed system. I did some research but couldn’t find any option to enable or disable these notifications. What’s the solution for this?...

change container button on interaction update

Hey how can i change something in the container when i update the interaction i have tried it like this but it didnt worked ```ts interaction.update({ components: [ new ContainerBuilder(interaction.message.components[0] as APIContainerComponent) ], flags: [MessageFlags.IsComponentsV2]...
No description

"unknown interaction" due to high traffic

When my bot encounters heavy burst loads it will encounter "interaction failed" on the user end, and "unknown interaction" on the bot end. In my button handler logic I defer reply on the first line, so it should respond within the 3s. This would happen for around 15-30 minutes, and the bot would start to actually respond. In some cases it would show the defer reply state and stay there for around 5-10 minutes, and then finally change to the actual response, or in some cases it wouldn't update at all, probably due to the interaction expiring. For some data the first event we used the bot for had around 600 button interactions per minute, which had zero problems, and then the next few events sat at around 2k interactions per minute, that's when the problems started. These are also averaged out at 30minutes, which means the initial interactions would be way more...

String Select Menu support for modals

Is it buggy or working normally?

Update interaction message appending a new container

Hey! I'd like to know if it's possible to do an interaction.update and appending a new container without changing or removing the original one, I had some tries but I'm having some troubles because the original container has a file inside and the message also have an actionrow with buttons I was wondering if there's a good method to do that...

Is it possible to get a container or button in container from an already sent message?

I'm making a ticket bot, and I have a manage_tickets command that toggles ticket creation by disabling/enabling the button that opens the ticket. I decided to switch from embeds to containers, and now I can't figure out how to get container or a button from message

Mature code suddenly silently failing to execute?

Hey guys, I have code that has run reliably for the last 4+ months with zero issue. In the last 24-ish hours I've had issues with several /command scripts stalling at random places without throwing errors in the try/catch blocks. Has something changed on the DJS or Discord end that would cause these issues?...