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

Typescript Support

Does djs support Bun/TS? I know this might sound like a silly question but I've looked at the guide and all the examples still use CommonJS....

EditReply Error

i’m creating a reply with ephemeral, and it works without any issues. Then I add a console.log between each line to track where the problem occurs. Indeed, in the console, I get 8 log outputs out of 9, and the issue happens specifically at editReply. However, when I use .catch, nothing happens, and I can’t figure out what the problem is.
No description

Interaction already replied while it isn't

Whenever I run a cmd which has deferReply() at start of execution, I get that interaction is already replied. It's not being defered from what I can log in terminal but still got the issue

I am looking for a node bot developer.

I basically already have all the code I made 4 bots but now I want to change it to make all the code for just one bot. I made it all in there index’s only and I would like to keep it like that.

issue with HeadingLevel

im currently building a function called createTitleBodyResponse which takes in 4 parameters, one of them being a title_size which corresponds to a HeadingLevel. for some reason, there is an error when i attempt to use this logic. the first implementation has the error `` No overload matches this call. Overload 1 of 3, '(content: string, level?: HeadingLevel.One | undefined): # ${string}`', gave the following error. Argument of type 'HeadingLevel' is not assignable to parameter of type 'HeadingLevel.One'....
No description

i can create guild using a bot

i can create guild using a bot?

i can create guild using a bot

i can create guild using a bot

any way to fetch user status from the guilds/guild_id/members/member_id api

because it doesn't contain the user's presence in there

Problem with dropdown component interaction

I'm writing a Discord LLM bot that take input -> render options to choose -> output from choice. Example and problem in screenshot attached. The code that create and track vote is in here: https://github.com/alaireselene/kiki-chan/blob/main/src/utils/ai.ts, line 237 to 318 for handling after select choices, line 321 to 368 for create dropdown component. Currently i let it respond that I choose., but still fail. Any idea?...
No description

Super high latency to receive message create event

hello i am using discord-hybrid-sharding with djs-v14 and i seem that have the high latency of the first shard but another shard still normal. The message create event took about 20s to be solved...

need help installing discord.js

its giving the error in image when i try star bot
No description

IDE for mobile

yoo, anyone know and want to create a website which allows to code discord bots?

Inaccurate ping measurement with client.ws.ping

Every time I pull from client.ws.ping, it outputs -1, regardless of the connection I'm on or the speed at which it's running. Is there a reason for this? This has been happening to me for as long as I've been familiar with discord.js (I think since v11)

How to get started with ./,/;-commands

I am making a discord bot for a cult server of mine about bread, and there is a channel in that server where new members ping the person that recruited them. I want my bot to keep track of that and make a leaderboard of sorts, but I do not know how to make the bot do anything besides slash commands. So I want my bot to - Read a new message - Then determine if it is a ping and sent by a user that hasn't ping there before...

fetch users

I'm developing a team system in my Discord bot, where each team can have multiple users. Now I want to create a select menu to remove users who are already in a team. The idea is to fetch these users to dynamically build the menu, but since a team can have many users, I'm pretty sure this will hit the Discord API rate limits. Has anyone faced a similar issue or has suggestions on how to handle this in the best way? I was trying to use interaction.guild.members.fetch by passing an array of users, but this only works for users in the server, which is also a problem....

Syncing messages globally

I am building a bot which has a live "feed" / home page. Any ways I can mass- update the messages of the page globally? Must be scalable and reliable.