From 388114e4c621445bef0d180eac1f448d0e667d21 Mon Sep 17 00:00:00 2001 From: Amelia Katherine <32780515+night-lake@users.noreply.github.com> Date: Sat, 20 May 2023 16:54:36 +0300 Subject: [PATCH 1/3] update schema to implement tickets --- prisma/schema.prisma | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 607b4266..7b71e4f6 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -27,6 +27,8 @@ model Config { logsChannel BigInt? @map("logs_channel") logModerationActions Boolean? @map("log_moderation_actions") currency String? + ticketsChannel BigInt? @map("tickets_channel") + ticketsRole BigInt? @map("tickets_role") @@map("config") } From db2cc7db576ec5dcfd1e60b0c893f41c7dbefd4e Mon Sep 17 00:00:00 2001 From: Amelia Katherine <32780515+night-lake@users.noreply.github.com> Date: Sat, 20 May 2023 17:02:04 +0300 Subject: [PATCH 2/3] edit ready event --- src/events/ready.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/ready.ts b/src/events/ready.ts index cd258b2b..5cbcb9d4 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -27,7 +27,9 @@ export async function run(client: FluorineClient) { guildId: BigInt(guild.id), logsEnabled: false, logsChannel: null, - logModerationActions: false + logModerationActions: false, + ticketsRole: null, + ticketsChannel: null }, update: {} }); From 84be8e7f9f854d95d1471caa4c8b1e7c903ec56e Mon Sep 17 00:00:00 2001 From: Amelia Katherine <32780515+night-lake@users.noreply.github.com> Date: Sat, 20 May 2023 17:16:19 +0300 Subject: [PATCH 3/3] some locs --- i18n/en-US/commands.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/i18n/en-US/commands.json b/i18n/en-US/commands.json index 879dade3..c3817b6d 100644 --- a/i18n/en-US/commands.json +++ b/i18n/en-US/commands.json @@ -371,6 +371,42 @@ "DESCRIPTION": "Get an invite link to Fluorine's support server", "NAME": "support" }, + "TICKETS": { + "DESCRIPTION": "Manage and edit tickets in your server", + "NAME": "tickets", + "NEW": { + "DESCRIPTION": "Creates a new ticket creation flow", + "NAME": "new", + "OPTIONS": { + "CENTERAL_TICKETS": { + "DESCRIPTION": "Whether to create tickets in the centeral tickets channel, or in the flow's channel", + "NAME": "centeralize_creation" + }, + "CHANNEL": { + "DESCRIPTION": "The channel where the flow will be created, and where tickets may be created", + "NAME": "channel" + } + } + }, + "OPEN": { + "DESCRIPTION": "Manually open a ticket for a user", + "NAME": "open", + "OPTIONS": { + "CHANNEL": { + "DESCRIPTION": "The channel where the ticket will be created, it must be a channel containing a ticket flow or the centeral ticket channel", + "NAME": "channel" + }, + "FREEZE": { + "DESCRIPTION": "Whether to freeze the user upon creation of the ticket", + "NAME": "freeze" + }, + "USER": { + "DESCRIPTION": "The user to create the ticket for", + "NAME": "user" + } + } + } + }, "TIMEOUT": { "DESCRIPTION": "Timeout a user from the server", "NAME": "timeout",