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

Question about integration

On server where I spend some time there a Role Linked integration. That's get your steam account if you allow, and get steam ID and gets some information about dota 2 from your profile. What I not understood is in picture, like is there anyway to make it in Discord.JS or no. Any help appreciated

Does anyone know if the defaultMemberPermissions can set a job id or just PermissionFlagsBits?

```lua module.exports = { name: "teste", description: "teste", defaultMemberPermissions: PermissionFlagsBits.Administrator,...

adding role problem

my code: interaction.guild.members.cache.get(match[1].toString()).roles.add(role) (with match[1] being a user ID) my error:...

Post video link with hidden URL (preferably without downloading the video)

Is there a way to hide the URL while posting a video because the URL is a bit too long

messages

getting messages of a discord channel?
channel.messages.fetch().then(messages => {
console.log(messages);
});
channel.messages.fetch().then(messages => {
console.log(messages);
});
...

how do I access the forum channel a thread was created in

how do I access the forum channel a thread was created in

Shards Error

The Console Is loading Two Times And When i Used Some Command Like "$ping" Bot Is Replying Two Times And My Console Getting An Error Like ``` [ AntiCrashDetection ]:- Unhandled Rejection/Catch Response { [Symbol(realm)]: null,...

Getting Gateway Ratelimited.

My shards are getting interrupted a lot, in last 12 hours I got 291 reconnecting logs and more than double in last 24 hours. Why is that? Is it normal? Cause I got gateway rate limited yesterday because of this. Although I have a GitHub issue stating that reconnections are not rate limited. https://github.com/discord/discord-api-docs/issues/1369...

CombinedError upon embed creation

Error: ```js CombinedError (3) Received one or more errors ...

Not getting presence events for server owner

I'm listening for all Events.PresenceUpdate events and seeing them come through for all members of my Discord, other than me, the server/guild owner. Is there something special I need to do permissions wise to allow the bot to get presence updates for my user as well?

No handler was found for this command

im using discord.js to handle the command but python to send the reply message lmao, sooo whats the fastest method (like sending a message using discord.js) i can use to bypass this thing!?

Is it possible to make an event to check if a file is created/edited/renamed/saved

Is it possible to make an event to check if a file is created/edited/renamed/saved

embedbuilder is not working ...

``js try { // interaction.guild.members.ban(member, {reason: reason}); const EMBED = new EmbedBuilder() .setTitle(Ban user:`)...

Discord.js bot on server dont start

I have a server for my discord bots, to host my bots i use the package pm2. When I hosted the first bot everything worked fine, but when I uploaded the 2nd bot, it no longer found the ./handlers folder, when I then tried further commands with pm2 the first bot also worked at some point (after 5 days of running time ) no longer. What is the reason and how can I fix this error? (The folder is in the same folder from which it is also called)...

Multiselect dropdown list collector doesn't trigger

Good evening I have a first Dropdown list with 2 choices (maxValues = 1), then according to the choices it displays another dropdown list with 3 choices (maxValues = 3). The collector is working correctly for the first dropdown but for the second one when I select for example 2 values and then click away, it does not trigger the collector. Here's the code below : ```js...

Demote Command doesn't work.

So I have a demote slash command and when someone runs the command I want to check if they actually have the role to run the command so if they dont have it denies it. But for one reason the if statement doesn't work

Replaying missed events after shutdown

Does d.js expose any way to replay events missed due to a temporary shutdown? The TLDR is that our host will perform automatic relocation for load balancing every so often, and we'd like to replay events missed from this procedure. This would be a full application restart, not just a gateway reconnect, so I'm not sure if it's possible. Here's the gateway docs for this feature https://discord.com/developers/docs/topics/gateway-events#resume. It would be trivial for us to persist the fields required in this request if d.js gives us access (session and sequence information)....

so i have a doubt my system is giving "interaction failed"

so i have a doubt my system is giving "interaction failed" i want to remove this error when i edit a reply

command interaction with another command

my /report command is interacting when i use my /help command, i've somewhat fixed it but now i get an "DiscordAPIError[10062]: Unknown interaction" error everytime i use the /help command, here is the following code that i'm having issues with: