Skip to content

Commit

Permalink
📝 Add setUser and public proprieties
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jun 7, 2024
1 parent 20f19a9 commit 63a948e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/tickets/src/class/TicketBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const ticket = new Database<Ticket>({ table: 'Ticket' })

export class TicketBuilder {
private options!: TicketType
private embed!: EmbedBuilder | undefined
private buttons!: ActionRowBuilder<ButtonBuilder>[] | undefined
public embed!: EmbedBuilder | undefined
public buttons!: ActionRowBuilder<ButtonBuilder>[] | undefined
private user!: User
private readonly interaction: Interaction
constructor ({ interaction }: { interaction: Interaction }) {
Expand Down Expand Up @@ -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 }

Expand Down

0 comments on commit 63a948e

Please sign in to comment.