Search
Setup for Free
d-I❄
discord.js - Imagine ❄
•
2y ago
electric
My bot will crash after running the command
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,339
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
D
d.js toolkit
•
6/26/24, 10:34 AM
What
's your exact discord
.js
npm list discord.js
npm list discord.js
and node
node -v
node -v
version
?
Not a discord
.js issue
? Check out
#other
-js
-ts
.
Consider reading
#how
-to
-get
-help to improve your question
!
Explain what exactly your issue is
.
Post the full error stack trace
, not just the top part
!
Show your code
!
Issue solved
? Press the button
!
E
electric
OP
•
6/26/24, 10:34 AM
Im not sure what is this about but Ill appreciate if anyone can help me out
S
Syjalo
•
6/26/24, 10:36 AM
You are trying to send an empty message which is not allowed
S
Syjalo
You are trying to send an empty message which is not allowed
E
electric
OP
•
6/26/24, 10:36 AM
but it
's okay when I first run the command
E
electric
OP
•
6/26/24, 10:36 AM
then it crashed
E
electric
OP
•
6/26/24, 10:36 AM
why is there an empty message
?
E
electric
OP
•
6/26/24, 10:36 AM
is this possibly the reason
?
S
Syjalo
•
6/26/24, 10:36 AM
I don
't know
. Show your code
S
Syjalo
•
6/26/24, 10:37 AM
How
sendOption
sendOption
is defined
?
E
electric
OP
•
6/26/24, 10:37 AM
E
electric
OP
•
6/26/24, 10:37 AM
Im new so sometimes idk what Im doing
E
electric
OP
•
6/26/24, 10:37 AM
but I think
E
electric
OP
•
6/26/24, 10:37 AM
something is unecessary in here
E
electric
OP
•
6/26/24, 10:37 AM
i just don
't know which part is
T
treble/luna
•
6/26/24, 10:38 AM
The content is empty
T
treble/luna
•
6/26/24, 10:38 AM
And theres no such thing as EmbedBuilders
. That should error
E
electric
OP
•
6/26/24, 10:39 AM
I actually added a s
E
electric
OP
•
6/26/24, 10:39 AM
I removed it
E
electric
OP
•
6/26/24, 10:39 AM
I defined it earlier
E
electric
OP
•
6/26/24, 10:39 AM
i defined EmbedBuilder
E
electric
OP
•
6/26/24, 10:39 AM
S
Syjalo
•
6/26/24, 10:40 AM
Your bot trying to send a message if the member sent a message and has the role
, but the content
/embed are empty
, because the message content has no command
!app
!app
S
Syjalo
Your bot trying to send a message if the member sent a message and has the role,...
E
electric
OP
•
6/26/24, 10:41 AM
so should I delete the send option line and defining sendoption line
S
Syjalo
•
6/26/24, 10:42 AM
I think the message should be sent if the
!app
!app
command is used
. So move the sending part to the command check block
S
Syjalo
I think the message should be sent if the `!app` command is used. So move the se...
E
electric
OP
•
6/26/24, 10:43 AM
like this
?
S
Syjalo
•
6/26/24, 10:44 AM
Now it deffinetly will be empty
, because you
're not assigning anything
, You better to learn some more JavaScript first
#rules 3
S
Syjalo
Now it deffinetly will be empty, because you're not assigning anything, You bett...
E
electric
OP
•
6/26/24, 10:46 AM
when i search for yt tutorials they just straight off teach coding
E
electric
OP
•
6/26/24, 10:46 AM
:
/
T
treble/luna
•
6/26/24, 10:49 AM
dont follow youtube tutorials
T
treble/luna
•
6/26/24, 10:49 AM
They
're moslty outdated
T
treble/luna
•
6/26/24, 10:49 AM
You should have a basic js understanding before starting to code a bot
, just copy pasting code doesnt work
T
treble/luna
•
6/26/24, 10:49 AM
#resources has some good sites
S
Syjalo
Now it deffinetly will be empty, because you're not assigning anything, You bett...
E
electric
OP
•
6/26/24, 11:56 AM
I actually found the issue
E
electric
OP
•
6/26/24, 11:56 AM
it
's sending 2 embeds at the same time
E
electric
OP
•
6/26/24, 11:56 AM
Im not surre why
E
electric
OP
•
6/26/24, 11:56 AM
hence it can
't delete any messages
E
electric
OP
•
6/26/24, 11:56 AM
because the initiative messages has already been deleted
E
electric
OP
•
6/26/24, 11:56 AM
and hence it crashed
E
electric
OP
•
6/26/24, 11:56 AM
whenever I initiate the command
sendOption
sendOption
!app
!app
!app
!app
Similar Threads
Bot crashes after running a servercreate command
d-I❄
discord.js - Imagine ❄ / djs-questions
3y ago
Bot will crash after first successful run of command (will auto be fine after like 2 mins)
d-I❄
discord.js - Imagine ❄ / djs-questions
2y ago