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

dms not registering as a dm

hey, ive been trying to make this code from like a year ago work, but the channeltype.dm doesnt seem to be working -

Listing entries in a ForumChannel?

I am wanting to list entries in a ForumChannel, but I am not sure how to go about it? I have a topic with two forum threads (if that is the right terminology?), but the following code returns 0: ```ts async function listForumThreads (channelId: string, since?: Date) { const client = await getClient();...

Issue with Duplicate Commands When Bot Is Added to Another Server

Hi everyone, I’m facing an issue with my bot’s deploy script, and I’d appreciate your help in resolving it. Here’s the situation: 1. The bot works perfectly when added to a new server via top.gg. Commands deploy as expected, with global commands available and no duplication. 2. The bot is also in an admin server (used for managing guild-specific commands). In this admin server, both global commands and admin commands work fine — no duplication issues....

ERROR

My bot is online and shows the commands But i end up with this.... pls help ...
No description

Embed generator

Hello everyone! Today I have a question again, not quite on the topic. I am looking for a tool that will help to beautifully design embed messages, if any, and export them as code. Does anyone here know? Currently, it is very inconvenient to restart the bot every time to see the final result, I want to see the result immediately.

How to limit visibililty of Slash Commands

I have around 30 commands, and some of them are special commands that I want to be visible only in my support server. If someone adds the bot from my support server, these special commands should not be visible in their server. How can I achieve this?

quick question about caching in djs

hi. is there any way to control what i cache specifically? for my example, here's a guild object: ```json...

messageCreate isn't firing

I'm not getting messageCreate triggers when a message is sent in a chat channel. To cover items from similar questions: - I've triple-checked my intents (see below)...

Deno vs Bun vs Node

Which one's the best for bot development, speed, html logging and SQL database?

Dual Hosting

Hi, would there be an easy way to detect if your bot is being dual hosted?

button interaction response problem

When responding to a button interaction, I am trying to disable the clicked button, but the following error keeps occurring. The label is already set during its creation.

Global Commands are not registering

i made sure certain command is reserved for a particular server and remaining commands are global , the code which iam pasting below worked for the past 3 days but it stopped working yesterday - https://gist.github.com/Kiran-Alex/2920c666d0dadf5f309977b595fe3d03 and the output : - >
> node src/deploy-commands.js && node index.js

Starting bot command deployment...
Deploying 30 global commands...
> node src/deploy-commands.js && node index.js

Starting bot command deployment...
Deploying 30 global commands...
...

Does Discord.js natively support a debouncer or similar feature to prevent excessive button inputs?

I am curious if Discord.js provides native support for a debouncer to handle issues like excessive button inputs. If not, are there alternative features or approaches available to address this problem?

How to properly use "fetchReply" in Discord.js Interaction API?

While working on my Discord.js bot, I encountered the following warning: -# (node:12684) Warning: Supplying "fetchReply" for interaction response options is deprecated. Utilize "withResponse" instead or fetch the response after using the method....

slash command deploy

I think the function for deploying slash commands is not working properly. I want to know what the issue is.

How to register a User Installed SlashCommand

i created a shlashcommand but it does not appear as user installed command ```js new SlashCommandBuilder() .setName("example") .setDescription("example command")...

Message cannot be edited

My code: ```ts // The channel is fetched with ctx.guild.channels.fetch(parsedLink.channelId) let message: Message | null = null; try {...