Discordjs and TypeScript typescript error
Hello, someone else has this same failure, all the embeds in the send section are failing, the bot was working fine until a few hours ago.
28 Replies
PartialGroupDM means you enabled channel partials in your client config and you need to fetch the channel before sending it to make sure it's cached
I don't understand very well what you mean, the bot was working fine hours ago, out of the blue I clone the repository again and install the packages and I get an error in the discord one.
What's your typescript version?
Set it to ~5.4.5 in your package.json. Mind the tilde.
Ok, I'll give it a try, thanks!
Same error, but thanks for the help.
Did you run your package manager install afterwards?
If so, you'll just have to use git blame to find the cause since you say it worked before https://www.atlassian.com/git/tutorials/inspecting-a-repository/git-blame
Atlassian
git blame | Atlassian Git Tutorial
The git blame command is a troubleshooting utility that has extensive usage options. Learn how to use this command, how it differs from Git Log, and more.
That's the strange thing, I went back to previous commits and I get the same failure and not only in a crazy way in railway too, I put previous commits and it presents the failure in the library.
I just tried another bot with the framework and it also has the same error, they are different codes and separate repositories, all my bots outside the framework are working normally.
Please share the repository then
Adjusted the title because this is not a problem per se with framework
The cause of the error is the new version 14.16.1, I went back to 14.14.1 and it works fine.
@vladdy
What
seems like djs update brokey things idk
nop
its correct
messages can now come from partial group dms
I have several bots, all the ones that were updated to discord 14.16.1 collapsed, not only locally but also in production with railway.app, when I went back to a previous version the problem disappeared.
If you're getting compile errors because of channel.send not being present everywhere that is correct
If its other errors, submit an issue on djs
There are several errors, the most common and repeated in all the embeds is send, the other errors are in imports as shown in the images above.
huh
i'll take a look, could be just ts having a stroke
hahaha is possible, then I'll be testing the other bots, so far there are only 3
i just bumped highlight's beta and i only had issues with partial group dm send
It may be that typescript is blowing up with the new version of discord, but I'll check later
no rush
:DJ_Cool:
also we have a fix incoming in djs soon which solves msg.channel showing up with partial group dm channel in the wrong contexts
nice bro!