DiscordJS-V14-ModMail-Bot icon indicating copy to clipboard operation
DiscordJS-V14-ModMail-Bot copied to clipboard

General Bot Errors

Open mrkingtj opened this issue 8 months ago • 3 comments

I have not edited any files apart from button.js, and messageCreate.js and slash commands register but the bot does not respond to them. I have troubleshooted everything possible (including scopes bot and applications.commands) with no fix. (stock files straight from this repo has the same issue)

Worth mentioning that everything else functions as intended apart from slash commands

mrkingtj avatar Oct 18 '23 23:10 mrkingtj

It should be fixed now, I have released a new version of my package without updating this code, which means you're using an outdated code with the latest version. Lucky for you, the version of this bot v8 has been released, it should be fixed now.

If the error is still occurring, feel free to tell me.

TFAGaming avatar Oct 21 '23 22:10 TFAGaming

So delete the entire folder I have now and redownload the .zip? Or can I just download v8 and replace files? Which is the best way to go? (I would rather just replace bits of code here and there but it seems like its way more than just one file)

P.S. is it possible to modify some files to continue using the JSON database (with v8) rather than SQL? As Visual Studio Code can't read .sql databases even with SQLite extension

mrkingtj avatar Oct 22 '23 05:10 mrkingtj

UPDATE: I did a bit of trial and error but now I got the slash commands working using v7 (found I didn't have all the files yet everything worked, anyway) with the new files in v8. But now I get TypeError: Cannot read properties of undefined (reading 'findOne') and I am not sure how to fix it. Everything else works apart from sending the attachment and embedded to the user and the defined channel. (My "outdated code" works fine with sending the attachment but with the v8 file it doesn't work. Hence the error)

Here is the file messageCreate.txt in .txt format (just so it will send)

mrkingtj avatar Oct 22 '23 11:10 mrkingtj