discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Handler

Does anyone have a good handler for djs v14 with slash commands, buttons, menus, etc?

message.embeds empty

I am working on a bot that checks the embeds on a message, but its just always empty, if I take the message link and take a look the message clearly has a embed. I do fetch the message before using, even with force enabled. Is there some common reason why this might be happening?

running scripts is disabled

ive recently moved from Mac to Windows. ive got no problem running code in vsc on the Mac but on Windows it says my permissions are not allowed to run scripts. followed 3 diff ways to allow and still no luck. any help here is more than appreciated.

Delay Issue

Hello there, I got bots in many servers but only in 1 server i face delay issue that need some seconds to execute. Everything, is that cause server is bugged or something false from my side? (I dont use timeouts ect on the bot so the delay is not used anywhere)...

Error while DM user

``` Cannot read properties of undefined (reading 'createDM') at Object.execute (E:\0giochi-miei\Js\bot discord\imperyaTicket\commands\admin\close.js:96:34) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Client.<anonymous> (E:\0giochi-miei\Js\bot discord\imperyaTicket\index.js:75:9)...

GuildScheduledEvent triggers

Can anyone point me in the right direction? Trying to handle when a user subscribes/unsubscribes from a guild event. discordjs v14.16.2 ```client.on(Events.GuildScheduledEventUserAdd, async (event, user) => { console.log(event);...

Discord slash command

Hello, I made a slash command - everything works well on the server, and I installed the user app, however I do not see the bot command registered in DMs, however it is for any other server, is there a setting to enable?

Registration Request on Startup

I've asked AI as well and for some reason my bot just isn't launching properly. I'm not sure if it's related to discord.js but I'm learning so I might just be stupid. Below is my debug from the console output [DEBUG] Initializing Discord REST client......

Bot hosting problem

i will give my code in message
No description

Automatic publish announcements

Hello, I have an announcement channel which I send webhooks to it and I want it to automatically send it to the servers that follows it without me having to click publish, how can I achieve that ?

Shards are still being spawned

I am attempting to restart my bot and getting these error messages. - The bot is not running elsewhere - This error only happens on my VPS and not my local machine - broadcastEval or fetchClient values is not being called anywhere immediately upon start...
No description

Duplicate entitlement event

I don't understand why the event on entitlements returns the information to me twice. I am looking for a solution so that the event is triggered once....
No description

leave (non command)

Get this error when tryna leave server i dont own
No description

Leave (NOT COMMAND)

How do I leave a server through my VSCode if i don't own the server (i have no permissions to kick the bot) and I want my bot to leave their server. Please help

setNameLocalizations

Hello, with the localizations commands, I would like to make my setNameLocalizations clickable, except the only clickable commands that I have are the setName, how I can make my setNameLocalizations clickable, knowing that by putting the id of the setName or setNameLocalizations my command is still not clickable

Embed image doesn't show since couple of days.

I am not sure if it is discord.js problem. My bot once a day posts 3 embeds with images. In 2 of 3 embeds images are displayed correctly, in last embed image is not displayed at all since 5 days. I checked embed source, image url and proxy_url are set correctly, however image width and height is 0. When i open that image url (from not working embed) in the browser it clearly shows image is 560 x 400 px. When i open image from working embed it shows the same thing....

Interaction emitting 2 times

So basically I have 4 buttons (3 for claim) and a reroll button (once an hour). if a user doesn't have enough currency to reroll it should tell him but he can still claim through the other buttons and here come the problem as the reroll button (should be always working not only for 10 minutes). for the 3 buttons i use a collector that works for 10 minutes only but for the reroll i use a the events. when a user reroll it-regenerate the buttons of claim but when trying to claim it run twice

there is way to add options to input in modal ?

everyhting in the question i want a select menu in modal but i saw only possible to have input i saw in the doc there is not options to addoptions or something like this to the input is it way to do it ?

Activities Event

is there an event that listens for the start of activities in voice channels?

Memory leak when sharding

I'm experiencing a memory leak when using sharding in my bot, obviously memory leaks are hard to debug so I just would like some advice on how to diagnose the issue. The bot slowly rises in memory usage up to 2-3 gbs until it runs out of memory. I tried running heap snapshots, but that didn't provide meaningful results. I've tried using discord-hybrid-sharding and without it, with the same results....