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

How to completely removing an emoji, not just the reactions

In my app, the bot automatically adds different emoji reactions when a user creates a message. Afte a certain amount of time, I want that emoji removed. Not just the reactions, but the entire emoji. So far, I've only been able to figure out how to remove the reactions, which result in the default reaction count of 1, but the emoji is still there. Is there a way to remove the emoji entirely? Thanks all

DiscordAPIError[10062]: Unknown interaction

hii my bot was working very well at morning but now its give me this error for everything i use any help 🤍...

Does anyone know this "ENOTFOUND" error?

I think it's an error in a call discordjs made, and not a result of a function I called. I'm using djs 14.6.0 and node 16.13.2, so it might have been fixed in the meantime, but I'm not really sure where it originated in the first place.

waiting for interaction collector to finish before executing another function

code: ``js await interaction.reply({ ephemeral: false, embeds: [embed], components: [row] }).catch(e => console.log(e)); let filter = i => [next, exit`].includes(i.customId);...

interaction.channel = null

Sometimes interaction.channel = null. This is often fixed by restarting the bot. But I don't want to restart the bot every 24 hours. It's a command interaction that was executed in a guild. The bot is in this guild and the guild is cached. ```js // It returned "true" anyways...

To invoke a command from another channel

I don't understand if I find docs. How do I call a command from another channel?...

Need help sending an echo to a channel without it being a reply to a slash command.

The title says it all. I want the reply to be sent as an ephemeral message to the user in the channel they performed the slash command, and I want the message to echo into another text channel. ...

question about threads

is there a way to edit tags of a thread using a command?

Server Guide

Do discordjs have any options or anything with server guide? And also with onboarding

Unable to collect reactions

Hey guys, I could use some help with an issue I'm seeing using discord.js 🙂 I'm trying to register when a user reacts to a message that my bot sends out. I have ```js...

Is there a way to hide this part of the slash command

The part which reports which user used the command

cache expires?

Hi i have a feature in my bot that runs in a interval every 30min. Its something like that: guild.roles.cache.get(....).memberCount But i noticed, that always after ~2 days the role and memberCount becomes null....

disabling an interaction menu

im just trying to disable an interaction after input from a player so that the messages can be properly deleted

Bot becomes unresponsive after executing a slash command

Hello! I'm building a discord bot and I've got it functional up to the point of the slash command handler working for one iteration. After any user sends a slash command the bot becomes unresponsive I'm not sure where in my Logic the issue may be, so I'm going to post the relevant code blocks and maybe someone might be able to help me understand where I went wrong 🙂...

insufficient permission

how can I check if my bot has permission of administrator on the event interactionCreate, so I wont get insufficient permission ?

Error Handling?

I want to supress only certain types of errors. - Where can I find the documentation for different error.code values? - Where can I find the structure of errors returned by Discord.js? - What are the best practices for handling discord.js errors?...

<Member>.voice returns null

Heyhey, i've ran into an issue where whenever a member is connected to a channel when the bot starts or restarts, and then leaves, the old voicestate of that member will always be null. Any ideas on how to possbily prevent this?

I cannot use my any command....

When I try use any command. it doesnt send message in channel but it send message from dm my code: (it can be complicated but every if else typical same) https://srcb.in/IqfX6bA25D...

Stuck trying to create a map to track votes on messages

I'm trying to allow user to upvote/downvote messages using reactions, as well remove their previous vote. I'm using a map and a map of maps to do this. The problem is that when a user reacts to a message, the map "userMessageVotes" updates correctly, but the map of maps does not. userMessageVotes - A map of a users votes per message messageVotes - A map of maps that has all votes from all users in a message. ...

Sending a user a DM

im trying to send a embed to a user's DM when they get a certain role. It use to work but now i get an error for line 11 saying "Cannot read properties of undefined (reading 'members')" Then i use member.user.send(WelcomeEmbed) to send the embed Versions:...