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

UND_ERR_CONNECT_TIMEOUT

Hello I am new to discord.js. I am trying to follow guide to learn how to bulid a basic bot on discord. As image shows, I run the script it comes to timeout fault. Then I try to ping discord.com. I certainly confirm the question is how to connect the discord server. I am now in China using a VPN. But it does not still work. What should I do? I really want to develop a Bot for my own community. Thanks!
No description

call translation

I am creating a bot that is capable of: 1) Recognize what the user says 2) Translate what the user said into a certain language 3) Clone the user's voice ...

User Context Menu in group dms - not sending interaction to gateway

Hello All, I have setup a user context command for reporting messages to my community. This command is user-installable. This command works in other servers that don't have the bot and DM's, however does not work in group DM's. Discord shows a response as if it sent the interaction to the gateway but it wasn't defered. However I put a console.log function to log any interaction event created, and it does not trigger in group DM's. Again it does log when I do it in DM's or in a guild....
No description

Activities

How do you create activities like this with djs?
No description

How to setup constants/variables outside of module.exports ?

Look at the image. I want to use the RateLimiter inside the command's run-function but I need to set it up somehow since I'm doing require() to import the file - which is only considering module.exports and not the ratelimiter... How can I fix this? ```js...
No description

the submitreview button is only becoming available after i submit all the 4 inputs and resubmit sum

{ postInfoFilled: false, paymentInfoFilled: false, lastSelectedChannel: false, lastSelectedSchedule: 'per-task'...

GuildMemberUpdate only fires when my bot's roles are modified.

The code I'm using works, but it only works on my bot. It doesn't seem to detect when another member has their roles changed. I'm using the example used on the faq page on https://discordjs.guide/popular-topics/faq.html. ```client.on(Events.GuildMemberUpdate, (oldMember, newMember) => { // If the role(s) are present on the old member object but no longer on the new one (i.e role(s) were removed) const removedRoles = oldMember.roles.cache.filter(...

Shard Error

```[WS => Shard 0] Heartbeat acknowledged, latency of 94ms. [WS => Shard 0] Heartbeat acknowledged, latency of 93ms. [WS => Shard 0] Heartbeat acknowledged, latency of 94ms. [WS => Shard 0] Heartbeat acknowledged, latency of 94ms. [WS => Shard 0] Destroying shard...

Error [ShardingInProcess]: Shards are still being spawned.

- I'm getting an error about Discord.js sharding that is not given an ERROR PATH. How can i find out what this is caused by? - The numbers that appear as output are because I am logging where the error is coming from - I brought an update and I don't have the old backup. There is no change in the update about the ShardingManager in shard.js. It was working in the previous version...
No description

Working on SKU / Monetization

Can anyone refer me to a yt vid or documentation on setting up discord SKU's? Such as checking whether a user is subscribed when they execute a command?

Error installing packages.

I thought I resolved it but didn't. I am running into this problem when trying to install packages. What would you suggest I do to resolve them or track down what's causing it? ```js node_modules/@types/node/events.d.ts(503,30): error TS2300: Duplicate identifier 'EventEmitter'. node_modules/@types/node/stream.d.ts(53,11): error TS2420: Class 'ReadableBase' incorrectly implements interface 'ReadableStream'. Type 'ReadableBase' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more....

User Isntall not registering slash commands

Hi, running latest versoin of discordjs with typescript and such, andcommands do register however when trying to instl them as a uer, they don't appear. Does anyone know any reason for this? I'll atach the command registratnoi code below but I have no idea why it doesn't worok as it works in guilds. Let me know if you need any more info

Error when installing packages

Hey I am running into this problem when trying to install packages. What would you suggest I do to resolve them? ```js node_modules/@types/node/events.d.ts(503,30): error TS2300: Duplicate identifier 'EventEmitter'. node_modules/@types/node/stream.d.ts(53,11): error TS2420: Class 'ReadableBase' incorrectly implements interface 'ReadableStream'. Type 'ReadableBase' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more....

.ENV file does not recognized in Synology NAS after shutdown

Well...I am just wondering what happens and why the .ENV file is not recognized after uploading it to the synology NAS with node.js installed. Prior to the sudden shutdown of the synology a few days ago, it still worked but after shutting down Synology and restarted, the .env file didn't get recognized in Synology but it works locally. The structure of the file are exactly the same as before and nothing changed.

Reaction Collector not collecting reactions in DMs

discordjs 14.12.1 ```js // Create a reaction collector const filter = (reaction, user) => {...

Is this possible with discord.js?

Is it possible to make a slash commands where in some options are hidden to certain users, also a slash command which is only able to be ran by developers of the bot and is it possible to hide certain options based on previous options the user has given within the slash command?

slash commands not working

My slash commands arent working. Give me a moment to get the code!

Commands send twice

Commands send twice pushes an error to console and sends an error There was an error while executing this command! ```js...