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

Fix Welcome @unknown-user with guildMemberAdd

Hey Our bot sends a welcome message with an @tag to the person who just joined the server. (guildMemberAdd) However since recently this has gone wrong and looks like this: (Screenshot)...
No description

Discord away message

Is there a way to make a bot that reads the user's dms and messages back? (like a gmail away message)

Why slash commands not registering on servere host

So i try slash command on local machine and it fine

In DM commands is not working

I tried to many times but I am not getting where I messed up. I want some commands to run in clients dm. Basically prefix commands. Using discord.js: v14.18.0 node version : v22.14.0...

Detect rename / setParent discord api rate limit

Hello guys ? How can I handle the rate limit of channel remane or setParent ? I'm trying to catch the error but nothing is catched I only get a The application did not respond on discord

Error with guild.members.me

Our bot is divided into several shards and clusters. To be able to make some updates, we go through each cluster and then each guild with client.guilds.cache.values(). But then guild.members.me is often null. However, the bot is still on the server. What could be the reason for this?

Is there a way to reset placeholder value and not have the message labelled as edited?

in continuance to #How to reset select menu placeholder after an option is selected, i only noticed this change after closing that thread

How to reset select menu placeholder after an option is selected

im trying to something like a menu that ppl do with discohook, but with a discord bot instead and i couldnt get the bot to reset the menu to its placeholder text after an option is selected, it keeps stuck on the option that was chosen last. couldnt find a proper solution googling it,
No description

Pinging Roles on interaction reply messages

i have a basic command that pings the chat revive role when run, but i cant seem to get the bot to ping the members with the role. is there something i am missing here is my code: ```js const { SlashCommandBuilder } = require('discord.js');...

What's the most effective way to handle hundreds (300+) of users who join a single VC to be sorted?

The requirements:
- User joins Voice Channel A - Voice Channel A will have hundreds of users join at once - Each user will need to be filtered (based on internal data from a database, have a local cache with sorting information) to another voice channel - There are currently 4 voice channels to be sorted to, channels B, C, E, F, with possibilities of expansion in the future...

How to handle cancellations on individual reoccurring events?

I have a simple bot to clone events and announce them. a new partnership now uses reoccurring events, so i got to fix them today. I had to notice today tho that DJS does not handle cancellations of individual events, unless i don't quite understand how that works. So before I open up a feature request, I was curious, if i was missing something. I tried checking for GuildScheduledEvent#isCanceled but that does not work and canceling the whole event calls a different event (guildScheduledEventDelete) and not guildScheduledEventUpdate. But from what I can see on the GuildScheduledEvent - Structure in the docs it doesn't seem to have any fields related to these kinds of edge cases. ...

inquiry

Hello, I would like to ask if I can use underscore in slash command like this: /add_client or not?

Problem getting null image

The API route https://discord.com/api/v10/users/@me, when it returns null avatar, how can I know which of the 5 default images discord set for the user? I have already tried to do the calculation, but I was unsuccessful, the result returns 3 for example, when the image is 5....

avatarURL on webhook not working

```js webhookClient.send({ content: 'Webhook test', username: 'Test', avatarURL: 'https://crafatar.com/renders/head/069a79f444e94726a5befca90e38aaf5'...

Issue with dm message event using messageCreate.

```js client.on('messageCreate', async (message) => { console.log('Received message:', message); // Log the entire message object if (message.channel.type === ChannelType.DM) {...

About djs v15

Hey team , i was wandering When will the new version be released Soon or after 1, 2,3 months?...

How to test a bot that manages dozens of users in a voice channel?

I am working on a discord bot that manages dozens of active users in a servers voice channels. I can easily test with 2-3 users by logging in on several of my own devices, but I am worried that once I hit dozens of users I may run into some rate limiting issues or other bugs and I would love to find these before I start running in production. The bot sets up an event then moves users around once the event starts, so it'd be pretty embarrassing if something breaks after people arrive for the event. I tried to set up a bunch of bots and then log them in a loop, but there must be some limitation from Discord because it only lets me log in one bot at a time from my laptop....