Discord Bot Messages Deleted


#1

I’ve been checking on my bot every few days, and its online but today messages seem to exist for a small period then disappear for no apparent reason, if i did not try so many times i would have suspected something was wrong, but there is no code near that block that can delete messages, Any idea why this is happening?


#2

I suggest adding some console logging to understand when and how your messages get removed. Sharing the project URL would mean we can take a look for you.


#3

I know for a fact there is no code to delete it, as it has worked in the same state a few hours/days before and i didn’t change anything


#4

Hey @CSharpAndLua!

What language are you using for the bot?


#5

nodeJS as its supported more by glitch


#6

What module are you using to connect to Discord? Discord.js, discord.io, Discordie?


#7

discordie, i will try using a specific version i made it with


#8

Are you getting any errors from the messages deleting? You may want to use the try and catch method to catch any and all errors coming from that code.

try{
  // message code
} catch(err) {
  console.error(err);
}

#9

None at all, there is no reason, i even checked and there aren’t any discordie updates that could have broken it


#10

Are you still having that issue? I can take a look at it if you need me to. I’m still learning Discordie but it doesn’t seem much different than Discord.js, so I shouldn’t be that bad :stuck_out_tongue_winking_eye:


#11

There arent any errors, i know because it worked and i havent changed it, but now it just wont


#12

Oh, so it worked before and isn’t working now? Gotcha. Not sure then. If you know there are no bugs in your code then I would send an issue to the Discordie GitHub repository.