My bot will crash after running the command

No description
19 Replies
d.js toolkit
d.js toolkit6mo ago
- What's your exact discord.js npm list discord.js and node 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!
electric
electricOP6mo ago
Im not sure what is this about but Ill appreciate if anyone can help me out
Syjalo
Syjalo6mo ago
You are trying to send an empty message which is not allowed
electric
electricOP6mo ago
but it's okay when I first run the command then it crashed why is there an empty message?
electric
electricOP6mo ago
is this possibly the reason?
No description
Syjalo
Syjalo6mo ago
I don't know. Show your code How sendOption is defined?
electric
electricOP6mo ago
No description
electric
electricOP6mo ago
Im new so sometimes idk what Im doing but I think something is unecessary in here i just don't know which part is
treble/luna
treble/luna6mo ago
The content is empty And theres no such thing as EmbedBuilders. That should error
electric
electricOP6mo ago
I actually added a s I removed it I defined it earlier i defined EmbedBuilder
electric
electricOP6mo ago
No description
Syjalo
Syjalo6mo ago
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
electric
electricOP6mo ago
so should I delete the send option line and defining sendoption line
Syjalo
Syjalo6mo ago
I think the message should be sent if the !app command is used. So move the sending part to the command check block
electric
electricOP6mo ago
like this?
No description
Syjalo
Syjalo6mo ago
Now it deffinetly will be empty, because you're not assigning anything, You better to learn some more JavaScript first #rules 3
electric
electricOP6mo ago
when i search for yt tutorials they just straight off teach coding :/
treble/luna
treble/luna6mo ago
dont follow youtube tutorials They're moslty outdated You should have a basic js understanding before starting to code a bot, just copy pasting code doesnt work #resources has some good sites
electric
electricOP6mo ago
I actually found the issue it's sending 2 embeds at the same time Im not surre why hence it can't delete any messages because the initiative messages has already been deleted and hence it crashed whenever I initiate the command
Want results from more Discord servers?
Add your server