rdobovic
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by rdobovic on 9/24/2024 in #djs-questions
Bulk role add/remove
Hi everyone,
I want to implement a discord bot command that can be used to add/remove specific role to/from a large group of users (or in some cases all users). Is there a way to do this without getting rate limited. I have seen some other bots that implemented such features, for example I heard a carl bot can do it. Any ideas would be appreciated :)
12 replies
DTDrizzle Team
•Created by rdobovic on 9/18/2024 in #help
DrizzleORM with JSDoc (insert problem)
Hi, I am trying to use drizzle with jsdoc in my project. I created the schema and everything works when I run it but for some reason jsdoc in VSCode is complaining when I try to insert anything besides the fields that must be specified like primary keys and fields with
.notNull().unique()
. Any ideas why this might happen?
Here is a part of my schema:
And if I try to do something like:
it underlines .values
, I don't understand why. The error it shows is:
Any ideas would be greatly appreciated :)4 replies
DTDrizzle Team
•Created by rdobovic on 8/12/2024 in #help
Recursive CTEs
Is it possible to use recursive CTEs with Drizzle ORM (
WITH RECURSIVE
MySQL statement)?3 replies