owner.send isn't working properly
Hey, for some reason when I my bot runs this if statement:
it doesn't work for some reason. And yes, isToggled does return to true but the owner.send() function is not sending the owner a message
guild variable code:
4 Replies
- 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!If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreEverything works perfectly fine, no errors or nothing, except the part were the bot doesn't DM the owner variable
Ok
Yeah the followUp happens
but not the owner.send
Hm, I'm currently testing the bot myself and my DMs are open.
Basically the whole point here is to DM me the owner (myself here)
No, but I'm going to make one soon.
I tried await owner.send already, and I got the same unwanted results
I'll try to do .catch
Update: I did both things and it didn't worked. I tried catching the error/bug and I have nothing displayed on my terminal
@Qjuh