-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat: Added "deleteTicket" on "closeOption" that delete the ticket when closing it #366
Conversation
src/structure/ExtendedClient.ts
Outdated
@@ -1,6 +1,6 @@ | |||
import {Client, ClientOptions, Collection, Routes} from "discord.js"; | |||
import {BaseCommand, ConfigType} from "./"; | |||
import {PrismaClient} from "@prisma/client"; | |||
import {PrismaClient} from "../../node_modules/.prisma/client"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have you changed the path ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because i got this error Module '"@prisma/client"' has no exported member 'PrismaClient'.ts(2305)
, i checked it again it is fine now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You had to do npx prisma generate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i see
Also, can you describe me what happens when deleteTicket is true and that you close the ticket ? |
First, it will close the ticket as before. Then, within 15 seconds, the ticket will be deleted. |
So does it generate a transcript and give it in dms etc ? |
yes |
config/config.jsonc
Issue: #336