diff --git a/plugins/tickets/src/class/TicketBuilder.ts b/plugins/tickets/src/class/TicketBuilder.ts index 28cb36c0..4efdcca4 100644 --- a/plugins/tickets/src/class/TicketBuilder.ts +++ b/plugins/tickets/src/class/TicketBuilder.ts @@ -14,8 +14,8 @@ const ticket = new Database({ table: 'Ticket' }) export class TicketBuilder { private options!: TicketType - private embed!: EmbedBuilder | undefined - private buttons!: ActionRowBuilder[] | undefined + public embed!: EmbedBuilder | undefined + public buttons!: ActionRowBuilder[] | undefined private user!: User private readonly interaction: Interaction constructor ({ interaction }: { interaction: Interaction }) { @@ -48,6 +48,7 @@ export class TicketBuilder { setClosed(isClosed: boolean) { this.options.closed = isClosed ?? false; return this } setVoice(voice: Voice) { this.options.voice = voice; return this } setCategory (category: TicketCategories) { this.options.category = category; return this } + setUser (user: User) { this.user = user; return this } setData(data: Ticket) { this.options = Object.assign(this.options, data); return this }