discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Question

Im making a Discord ping on join system Should I make the bot send the message with webhooks or normal?...

Thread .fetchArchived() doesn't return all the archived threads even if those are public

Hey there, I'm using the .fetchArchived() function to get all the archived threads in a forum but it looks like the function returns only a limited number of results. I had a look at the documentation but from my understanding adding the option fetchAll can be used only if the type is set to private which is not my case as all the threads are public. As you can see in the code I also didn't set a specific limit because I want to export all the archived threads but it looks like I can only get 50 of them. ```...

Ephemeral messages

My problem is that the error message is Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. and not only DiscordAPIError[40060]: Interaction has already been recognized. they happen because of my ephemeral messages, for example, I have a main message with several buttons, all buttons send messages from ephemeral, ephemeral messages have a couple more buttons, for example, to scroll through the rules pages, if I scroll to some and close the ephemeral message that is visible only to me. The next time you open it, it will give you similar errors, is there any way to fix this?...

Commands don't seem to update at all

I have tried re-deploying commands again, restarting my bot, restarting my Discord client, reinviting my bot to the server, checking the intents on discord.dev, and still nothing, I'm genuinely lost. I have also tried running the program with a different bot, but the commands don't even show up, and there's also no errors in the console. Is there something else I can do to troubleshoot this?

Linking emojis to a role

Hello, if I remember correctly there is a way to make an emoji only usable with a certain role through the API. Does djs have any easy way to do it?

TAG ID doesn't work correctly

They are (the members) on my discord i have the guildmembers intent and i tried that : const guild = client.guilds.cache.get(process.env.GUILD_ID); if (guild) { await guild.members.fetch(); } but nothing change...

Discord auth script logging

I have made a discord auth script that uses glitch to verify people using discord. I want to make logs for it using workbooks and embeds. I don’t really understand how to use webhooks of embeds so I would like if someone could help me make it

me commands arent updating

ive changed the command folder and its still showing commands that arent there

click button

can we click a button using djs?

Getting poll results

Hi there, I am trying to make a bot that makes a poll and then responds with the winning answer to the poll, How do i do this? Thanks...

Event to signify the launching on an activity

Is there a particular gateway event to know if an installed activity has been launched/started by a user in a Discord server? (appropriate gateway event to listen to)

discord rest api how to send dm ?

Hello, I am using discord-api-types and discordjs/rest for my worker based discord bot. According to docs,
rest.post(Routes.channelMessages(env.LOGS_CHANNEL_ID), ...));
rest.post(Routes.channelMessages(env.LOGS_CHANNEL_ID), ...));
is for sending messages to any discord server's channel. But I want to send message to a user's DM, how do I do that?...

Transcript to URL

So right now i already have it going to my bot-hosting.net panel and it goes to the correct file location but... Whenever i try using the link with express it says Cannot GET /transcripts/general-support-14.html

Collector Error

- Code ```js if (data) { const Btns = new Discord.ActionRowBuilder() .addComponents(...

Role mention

Please help me set up role notifications. My bot does not notify the role when sending a message in the chat. It has the Administrator role.
No description

I tried switching the file I am running node with but it keeps referencing the wrong file.

Yes I am in the right directory, uninstalled and reinstalled node. And cleared the cache.
No description

Commands not visible

I have the problem that when I push the commands globally, the commands are not available even after hours. However, it worked on my test server. No errors in console. Thanks in advance! ...

Fetch the prices of each SKU in your application store front

Hello, is it possible to fetch the prices of SKUs from your application store front using discord.js?

Button not firing interactionCreate event

I'm making a simple event signup bot tailored to my server. When registering for an event, you have to choose a character either from a list of existing characters or create a new one. When choosing the option to create a new character I never get a interactionCreate event to either the client's event listener or to awaitMessageComponent either. It's entirely possible I'm being really dumb here (have been working for several hours today and honestly should probably take a break), but I really can't figure it out. Screenshots of both the code and some relevant bot messages below. I'm getting zero console messages too. Tried putting one inside the filter option on awaitMessageComponent as well and nada. [email protected] node v20.11.0...
No description