Skip to content
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

Merged
merged 5 commits into from
Jun 16, 2024

Conversation

Uo1428
Copy link
Contributor

@Uo1428 Uo1428 commented Jun 15, 2024

config/config.jsonc
Screenshot 2024-06-15 191547

Issue: #336

@@ -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";
Copy link
Owner

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 ?

Copy link
Contributor Author

@Uo1428 Uo1428 Jun 15, 2024

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

Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i see

@Sayrix
Copy link
Owner

Sayrix commented Jun 15, 2024

Also, can you describe me what happens when deleteTicket is true and that you close the ticket ?

@Uo1428
Copy link
Contributor Author

Uo1428 commented Jun 15, 2024

First, it will close the ticket as before. Then, within 15 seconds, the ticket will be deleted.

@Sayrix
Copy link
Owner

Sayrix commented Jun 15, 2024

So does it generate a transcript and give it in dms etc ?

@Uo1428
Copy link
Contributor Author

Uo1428 commented Jun 15, 2024

yes

@Sayrix Sayrix merged commit a878dd1 into Sayrix:main Jun 16, 2024
@Sayrix Sayrix changed the title Config Update: Delete ticket on close button ✨ feat: Added "deleteTicket" on "closeOption" that delete the ticket when closing it Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants