Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

private thread tickets #426

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions i18n/en-US/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
4 changes: 3 additions & 1 deletion src/events/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
});
Expand Down