My bot will crash after running the command

No description
19 Replies
d.js toolkit
d.js toolkit2w 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
electric2w ago
Im not sure what is this about but Ill appreciate if anyone can help me out
Syjalo
Syjalo2w ago
You are trying to send an empty message which is not allowed
electric
electric2w ago
but it's okay when I first run the command then it crashed why is there an empty message?
electric
electric2w ago
is this possibly the reason?
No description
Syjalo
Syjalo2w ago
I don't know. Show your code How sendOption is defined?
electric
electric2w ago
No description
electric
electric2w 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/luna2w ago
The content is empty And theres no such thing as EmbedBuilders. That should error
electric
electric2w ago
I actually added a s I removed it I defined it earlier i defined EmbedBuilder
electric
electric2w ago
No description
Syjalo
Syjalo2w 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
electric2w ago
so should I delete the send option line and defining sendoption line
Syjalo
Syjalo2w 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
electric2w ago
like this?
No description
Syjalo
Syjalo2w ago
Now it deffinetly will be empty, because you're not assigning anything, You better to learn some more JavaScript first #rules 3
electric
electric2w ago
when i search for yt tutorials they just straight off teach coding :/
treble/luna
treble/luna2w 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
electric2w 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
More Posts