José
DIAdiscord.js - Imagine an app
•Created by José on 7/10/2023 in #djs-questions
Pass variables into <ShardingManager>.broadcastEval
I have this code:
But i get the following error when i run this code:
So i want to know... How can i pass the variable
params
to the broadcastEval? With the vanilla javascript eval i can pass the variables into strings, but how can i do in shardingManager?4 replies
DIAdiscord.js - Imagine an app
•Created by José on 5/26/2023 in #djs-questions
Not enough sessions remaining to spawn 1 shards; only 0 remaining;
command:
ts-node-dev --respawn --transpile-only main.ts
when I start the command I am getting this error when authenticating the bot with discord, with <Client>.login
, I searched about this error, and what I saw this happens with those who use shardmanager, but I do not use it... I imagine that maybe it's the ts-node-dev auto-restart, how can I prevent that?
6 replies
DIAdiscord.js - Imagine an app
•Created by José on 5/18/2023 in #djs-questions
shadow reply an interaction
How can I tell discord that the interaction was responded to without actually using the response functions?
I have a command that I have to send the message in the person's DM, but later I send it, that message appears that the BOT did not respond... How can I avoid this?
9 replies
DIAdiscord.js - Imagine an app
•Created by José on 5/14/2023 in #djs-questions
[TypeScript] - The VS Code alert a ghost error when i inset a ActionRow in message components array
Firstly, the code:
Well... I'm making a bot with Typescript, but even when i insert a actionrow in the components array the vs code show me this error:
The command run without problems, but i get this error in vs code... How can i solve this? (Whitout using @ts-ignore. please)
discord.js version
: 14.11.0
node.js version
: 18.3.05 replies