Command not working for Bot

I used a cloudflare base template to run a discord bot with it. I had databases so I use Prisma Client to link my mongodb to the project. I got it working but when I use commands im getting errors due to the command not working. Can someone help me able to use mongodb on my project so it can work.
Error setting up voice channel: Error: PrismaClient is unable to run in Cloudflare Workers. As an alternative, try Accelerate: https://pris.ly/d/accelerate.
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
at Object.get (server.js:3829:19)
at server.js:3977:51
at async Object.handle (server.js:3891:30)
at async jsonError (server.js:4097:12) {
stack: Error: PrismaClient is unable to run in Cloudflare…91:30)
at async jsonError (server.js:4097:12),
message: PrismaClient is unable to run in Cloudflare Worker…n issue: https://pris.ly/prisma-prisma-bug-report
}
10:34:16 AM POST / 200
Error setting up voice channel: Error: PrismaClient is unable to run in Cloudflare Workers. As an alternative, try Accelerate: https://pris.ly/d/accelerate.
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report
at Object.get (server.js:3829:19)
at server.js:3977:51
at async Object.handle (server.js:3891:30)
at async jsonError (server.js:4097:12) {
stack: Error: PrismaClient is unable to run in Cloudflare…91:30)
at async jsonError (server.js:4097:12),
message: PrismaClient is unable to run in Cloudflare Worker…n issue: https://pris.ly/prisma-prisma-bug-report
}
10:34:16 AM POST / 200
This is one of the errors:
No description
4 Replies
Cyb3r-Jak3
Cyb3r-Jak39mo ago
As per the errors the prisma client doesn’t work in workers. You need to use accelerate from the link
young
youngOP9mo ago
are you familiar with it?
Cyb3r-Jak3
Cyb3r-Jak39mo ago
I am not
young
youngOP9mo ago
dang alrightr thanks for the assistance though
Want results from more Discord servers?
Add your server