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

Message Specific Collector

So I have a embed with buttons which acts as a panel to control a voice channel. There can be multiple of these panels for multiple voice channels. Right now every panel generated can be used interchangeably. How would I differentiate each panel with each voice channel so that only the generated voice panel/specific panel can be used to interact with the voice channel. ...

Edit button for only one user

Hey, I try to update a button after one user click on it. Like, one button say "Join" and after clicking on it, the button change on link like : example.com?discord_id=user.id When i do something like that, the button change for all users. I just want the button update only for the user who click on it. ...

Getting error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function

I'm getting the error TypeError: client.actions.InteractionCreate.hasPermissionshandle is not a function for some reason and I can't figure it out https://pastebin.com/yYf9kj5N...

discord api error 50001

```js const { SlashCommandBuilder } = require('discord.js'); const { EmbedBuilder } = require('discord.js') module.exports = {...

DiscordAPIError[10062]: Unknown interaction

Hello guys, I just updated to v14 version and I'm trying to do a store command using buttons My problem is that when 2 commands with buttons and collectors are executed, it throws an error ...

Question about menu builder

is there any way to get data from a json file and every one of them as option in the menu?

Discord API Buffering edits to embed?

I have a status embed message that gets edited every 2 minutes with the most accurate information, however it takes about a minute for it to "catch up" even though the embed data my bot is sending is what it should be

Error Events

I have the channelUpdate event that has been executed when mee6 has updated the roles to a user and that should not be activated when it does that, what should I do? https://media.discordapp.net/attachments/1127276232543842384/1128353924726935699/image.png...

How do I use Client.updatePresence()?

The core library's Client class has an updatePresence function, how do I use this?

execute function not ending after return statement?

Hello, I have the following assign.js command that I am trying to use to assign a targeted user to a specific team, which is kept track of in a MySQL database. https://hastebin.skyra.pw/tusanaxana.js When the user is not found to have registered in the database, I am expecting that the function should stop, because there is a return statement on line 26. However, this is not the case. All the subsequent lines of code still continue to run, and I'm not sure why. Any help would be greatly appreciated, thank you! ...

hi ı update my bot v12 to v14. my bot online but not working. what is the problem

hi ı update my bot v12 to v14. my bot online but not working. what is the problem but dont came error in console...

errorhandler

Heyo peeps! I was wondering if anyone had tried creating an error handler that would catch every type of error and log it somewhere, as right now i have alot of TryCatch functions which simple make the code look ugly. Eaxmple of what i mean that might have a better way of doing so:...

guildCreate

is there a way to check who invited the bot to the guild without using auditlog?

How to begin with Discord js

Hi I am absolute Beginner in discord js i explored with documentation provided by the server but i am too beginner don't know where to start from scratch , I have knowledge of javascript and nodejs. I want help of you people to help me in beginning my journey into discord js....

User Content

How can a userContent be made visible/usable to a certain position or to everyone without having to manually modify the settings from the Discord integration server settings? - Discord.js: discord.js@14.11.0 - Node Version: v18.16.0...

Command Handler Issues

I would like to use my command handler to execute this code whenever someone types a message in a specific channel. This command iis NOT tied to a slash command, but instead listens for messages sent by users. I don't understand how to make the command handler work with code other than code using SlashCommandBuilder.

Image still shows

Hi, I have the following code as an update to a previous interaction, as you can see, I have set the files: [] to an empty array so that any files from previous interaction will not show.
return interaction.update({embeds: [embed],components: [actions], files:[], ephemeral: true});
return interaction.update({embeds: [embed],components: [actions], files:[], ephemeral: true});
...