discord.js - Imagine a 👻

DIA

discord.js - Imagine a 👻

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

Buttons working on past activities

Hey everyone. I'm making an interaction with an embed and buttons. The problem is, when a new interaction is called, the new buttons still work on the past embed (doing the calculations and all of that) as if it shares the same buttons, what can I do to make sure the activity is fully ended and the buttons only work on the same embed?

embed limits - what happens when they're reached/exceeded?

What happens when the embed limits are exceeded? Will the embed be truncated, or will it just throw an error message when you try to send it?

interaction user export

I made private market bot. if I want to sell something use /sell and put data then bot will send data with embed and buying button. if someone want to buy mine he click the button then bot will create ticket and give perm to buyer and seller to send message in new ticket channel. I used module export to send the seller's data and seller id to button.js. but in this case when another person use slash command all the seller's data changed to latest seller's data. How can I send each selling data t...

How do i get the current voice topic from a voice channel id?

How do i get the current voice topic from a voice channel id?

v13.6.0 djs - getting cache error

I couldn't find it when I looked in the library. what should i change here?
No description

how do I change the topic of stage Instances in the scene channel?

there is a channel this is a scene it has stage Instances set how to change the topic for this stage Instances the channel.stageInstance.topic = "New Theme" method does not work

connect two commands

the Hi, I've built two separate commands. one that generates image from text input, and the other one generates video from text input for script and an image source(URL, local file). I want to add one other to the image source option for the video-generating command with the image-generating command output. which means, I want to connect two commands into one command, although I can transfer my image-generating code to the second command and just asynchronously use the generated image for video source....

Discord JS music playback via ffmpeg on stage

I understand that in ffmpeg I pass the path to the file and how do I redirect the music playback stream to the voice of the bot that is on stage?

How do I check that the bot is connected to the stage and releases on it?

How do I check that the bot is connected to the stage and releases on it? To avoid catching an exception when connecting to a channel like here:

Inline field title

Hi, I want to make an Inline Title in my Embed object, as in the example of one of my kicks with a timeout error, what could be the problem?

Global commands push cause dev/local commands guild to have duplicates

Hello, I'm currently trying to setup a system where in development I run local commands, but for production I global deploy. The problem is that my dev/local commands guild ends up with duplicates of each command. I read in the discord documentation that the put route should overwrite any commands with the same name, but this seems to only apply within each scope. So if do local deploy it overwrites, but if I then global push it creates new ones within the dev/local guild. If anyone has a solution to this it would be much appreciated! deployCommands.ts: https://codefile.io/f/InFuvMpf1h...

TypeError

I am currently on a discord music bot which has a 247 command and for some reason the bot just times out after few hours, so I am trying to code so that if by chance the bot does leave or gets disconnet it will attempt to rejoin the voice chat, but I am running to a TypeError: realVoiceChannel.join is not a function;

The bot does not read the command although it does appear in the slash bar

Hello, I am creating commands for my bot, but I do not know what happens that although the code is 100% right, there is no error and even let me put the command and information, when sending the message tells me the bot that the command does not exist. I need someone to help me urgently please....

Permission system not working

Hello, I'm currently coding a steal command where you are able to add emojis. But the Permission system isnt working...
TypeError: interaction.client.permissionsIn is not a function
TypeError: interaction.client.permissionsIn is not a function
```js if (...

Discord bot not starting even tho code hasn't been changed for a long time

Is this a api bug or is it just that i screwed up my code? It worked a bit ago but then i added a file and then it wouldn't work so i deleted it. Now it just wont work no matter what

Modal input types

How many types of inputs can we have in Discord modals? I know of short and paragraph text inputs. But can we have dropdown/select inputs, checkmarks, radios etc. like we can in HTML forms? How or why not?

Send message to channel using channel ID

Hello. I need some help with getting my bot to send a message to a specific channel. The idea is to eventually replace the ID with a ForEach loop that cycles through a list of IDs I'll have. However, I keep getting an error code TypeError: Cannot read properties of undefinied (reading 'send'). I am using node version 18.16.0. Any help would be greatly appreciated.

Message Collector Filter not working

The filter is not working for some reason ``js console.log(codeValue); const filterDelete = msg => msg.author.id === user.id && msg.content.toLowerCase() === delete ${codeValue}`;...

connection_timeout when using [Register a slash command against the Discord API] 's code

ok, so i m just getting started in doing discord, i open the discord.js, followed the instructions to npm installed the discord.js version fourteen ,and then i pressed these lovely code in my koa project , i have to use the require method instead of just import the { REST, Routes } and it came out 'connection_timeout' error and nothing else about why this is happening nor what should i do to avoid this , this code have two necessary params : setToken needs the bot token , i gave ,Route.applicationcommands needs the bot's application.id,which is a bunch of number in string type to be exact . i think i run them in correctly .so ....what's wrong? this is just a test bot , no privacy should be protected....
No description

Invalid body form Error

Im making a counting command that allows you to set up the command in any channel you like. However, a 'invalid Body Form' error is occurring. Not too sure what's wrong. There is more code than in the ss but im assuming this is where the problem is occurring from. Error:...
No description