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

Problem with onMessageDelete

Hello Guys, Im facing a really weird problem. I have this 1. code where i have a normal message loggin what is working: ...

components v2 - intent?

Hello! i saw that you need to have activated an intent called "Message Components V2" to use this feature. is it true? (Discord Dev Page)...

When should I learn Discord.js

I'm currently learning JavaScript; and I'm about 50-60% of the way through the course. I have done Functions, Iteraction, Selection and variables. I know Python and C# already. Should I learn discord.js now or finish this course? Also, do I need to know Node.js too? ...

ComponentsV2

Is componentsV2 still based off slash commands ?

Disabling Buttons on new Components V2

I need some help I am currently work with v2 components mostly containers and I have action rows / buttons which need to be disabled on click but now I always need to remake the full container to do that is there any better way ?

error when adding my bot to use everyone

im not sure what this means, or what i need to change. I got it into my server though
No description

slash command not showing

Hey guy’s, im learning djs i needed help regarding slash commands I made a slash command and it not showing i will send my code in few mins i will appreciate it if you can tell me what did i do wrong...

Help Connecting a Bot to an Ubuntu Server via VS Code

Hi everyone, I have some bots that I developed myself, and I want to set them up on an Ubuntu server. I'm using Visual Studio Code and I want to connect to the server via SSH. I have a VDS with Ubuntu installed on it. But I’m not exactly sure how to properly connect via SSH and set up my bot on the server....

Learning DJS

What's the best way to learn djs? does anyone know any good yt channels or anything other than reading documentation? I last made a discord bot in like 2019 and im not gonna lie when i did i didnt understand much what my code was actually doing and didnt learn much, but i have a more solid understanding of js and other programming concepts now and would like to get back into it

Is it possible to edit role icon with discord.js?

Is it possible to edit role icon with discord.js?
No description

Setting a discord-activity from angular-app

Hello 🙂 I am wondering if it is technically possible, to set a discord-activity for users of my angular web-app? Is this technically possible? What i would like to achieve is having users, which are using my webapp, and have their discord-accounts linked, showing a discord-activity which states "Is using XYZ" with the logo of my application....

Question on user caching in bot messages

I'm testing making a bot send a message when a user joins and leaves the guild. The message contains a mention of the user. This is basically what I originally wrote: ```js const container = new ContainerBuilder() .addTextDisplayComponents(...

Detect other instance

hi, i would like detect other instance of same bot for security

Voice Status - how to set them

Hi, I have a question about the voice status that we see at the bottom of the voice channel name, how to set a voice status while the bot is on the voice? It's for my music player system....

<Role>.tags

tags: { guildConnections: true } What are considered as guildConnections ??? All I know is Linked Roles, is there anything else ???...

Handle Rate Limits

I've been trying stuff with channels name, but I've yet to find a way to handle Rate Limit errors from the API, how can I properly handle them? (discord.js 14.19.3) (node v22.16.0)...

Components v2 - SectionBuilder with button

Hey everyone. I'm trying to add a ButtonBuilder to a SectionBuilder, nested in a ContainerBuilder. But when trying to post the message, I get an error: ``` path/node_modules/@discordjs/builders/dist/index.mjs:486 throw new RangeError("Non-premium buttons must have a label and/or an emoji.");...

Components timeout causing "Unknown Message" error on ephemeral messages

Hey all, I did a bit of research before posting this but I'm still a bit confused, I'm wondering what would be the best way (if possible) to disable components on ephemeral messages. I'm currently trying to disable select menus after a timeout period using my component handler, but I'm getting a DiscordAPIError[10008]: Unknown Message error. My current setup does majority of the component handling within my components.js file, the rest being within the command files itself. The handler disables components after a certain time (2 minutes in my case). The error occurs in the disableComponents function when trying to edit ephemeral messages. The message exists when the timeout triggers, but the edit fails. I've considered just letting the components expire naturally, but I'd prefer to have them visibly disabled for better UX. I've also tried checking if the message is ephemeral before attempting to edit, but I'm not sure where to extend from this other then just ignoring the error....

Better way to see if user is in channel

I want to check if a user is in the same channel as the executed command. My current solution is quite big and complex. Is there a simpler/smaller way of achieving this? ```js const opponent = interaction.options.getUser("opponent"); const guild = interaction.guild; ...