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

Forum Event

Hey, is there a way to specifically like listen to certain forum and it's posts so upon new post, a bot will send some message?

How to use mongodb for database

i have realised json is not for me so i want to use mongodb please tell how to setup

edit

How to edit an ephemeral message?

I dont know the error

So I have a code with an error I dont understand and I dont know how to solve it. the setup.js https://sourceb.in/o5RbAKpNEC and the error: https://sourceb.in/KKIutqsbGI

redirect_uri

I understand why we need a redirect uri for oauth2 link because it makes a get request with code but why do we need to specify the same redirect url when generating token using https://discord.com/api/oauth2/token

embed

If you have an embed with a description with 4096 characters and a title with 2000 does it exceed the limit?

Aplication doesn't respond

Hi ! I have a problem under dJS 14 When I execute a command / the bot responds to me the application no longer responds even though I haven't touched the code since and it works very well I have no console error and I use everything in command handler I send the code here ? sorry my English is not perfect I am a desperate Frenchman...

my bot not responding

I'm trying to make a bot, but it can't get online. I think the problem is not caused by me.😭

Help me I am making a card gaming bot

So , I want to upload lots of image says 100000 so what will be right choice to do so it can take less space for now I thought to save UrL in my sql server then I will retrieve it but not working

Bot not appearing in member list

I am trying to get started following the discordjs.guide, but the discord bot is not appearing in the channel list as online, like expected. I used the default install link on the Installation tab of the Discord Developer Portal. I am getting the expected console.logs:...

Can't send modals ( An error occured )

Hi, i'm getting an error while sending modals code: ```js if(interaction.type === InteractionType.ModalSubmit) { console.log(interaction) if((interaction as ModalSubmitInteraction).customId === "modal-contact-admin") {...

Just getting back into discord bots

Recently just returned to going back to code my discord bot and notice that when i run the file i get "punnycode" module is deprecated. How do i fix this? Ive updated all dependencies to the current versions and still shows up. Tried to google it and nothing gives me a result to fix this Versions: Discord.js: 14.15.3 Node: 22.7.0...
No description

Where to re-learn Bot Coding

Hello everyone, I recently found the want to start learning how to create/code discord.js bots again. I used to code some bacj in V11/V12 but has since been quite a while and I forget most, if not everything I knew. Does anyone have suggestions for videos, sites, or anything to start relearning some of the basics to get back into the hobby?

REST token not present

Hey, I just switched to bun, the transition went well except for my Command Manager where the REST doesn't take the token even though the token exists.
Error

Bonjour

Bonjour je viens de commencer le discours.js et je voudrais un index.js qui prend en compte juste les commandes préfixe sachant que je ne mettrai pas mes commandes directement dans l'index j'utilise actuellement un dossier commands pour stocker les fichiers de mes commandes

I need help

Is it possible to check for perms before using the sub commands

how can i use buttons after restart without use again a command

i want to create a command and i want to add a button who can i use after a restart without use the command again how can i make this?

BitFieldInvalid djs 14.15.3

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: SEND_MESSAGES.
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: SEND_MESSAGES.
ℹ️ [email protected] ``` if (!interaction.member.permissions.has(PermissionsBitField.Flags.SendMessages, true)) { return interaction.followUp({ content: 'You do not have permission to send messages.' });...