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

BOT PROBLEM

I was going to create my bot by watching a video, that is, I was going to set up the bot, but I saw that video and did everything. Node did it first, but it didn't work for me. When I type node index.js, it crashes. When I use nodemon, I get this error: `` [nodemon] 3.1.10 [nodemon] to restart at any time, enter rs` [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,cjs,json...

any way to fetch discord user's badges with the api?

i am currently using guilds/guild_id/members/member_id but is there any way to fetch user's badges?...

Question about moderation and channel activity

Hi i was wondering if there was a way to delete a message and tell a channel to ignore the activity from it so people do not have the channel in white when mods remove spam messages / scams

Cannot find Module Error

Every time i run the node index.js command in the terminal I attatched a screenshot of what it says
No description

Forwarded message Question

My question is if a bot can detect if a message is forwarded and its content

Slash commands are not registered

Hello, Every time my bot starts up, it never finishes saving commands. It deletes the old commands, and then when it wants to save the new ones, it doesn't work. It has happened before, but right now it can't deploy properly. Does anyone know how I can fix this? I've included my code below....

Fetching voice channel from ChatInputCommandInteraction

I need to fetch what voice channel a guildmember is in when executing a slash command. When using message commands i use message.member.voice (assuming the message was created in a guild, this assumption can also be made using the slashcommand in this case) Thank you in advance!...

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...