Skip to content

Commit

Permalink
🐛 Fix error: "Cannot read properties of null"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed May 28, 2024
1 parent fb95237 commit 8e7a8ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tickets/src/class/TemplateButtonBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class TemplateButtonBuilder {

setMode(mode: 'production' | 'debug') { this.mode = mode; return this }
setType(type: TypeTemplate) { this.type = type; return this }
setProperties(elements: Properties) { this.properties = elements; return this }
setSelects(selects: Select[]) { this.selects = selects; return this }
setProperties(elements?: Properties) { this.properties = elements ?? {}; return this }
setSelects(selects?: Select[]) { this.selects = selects ?? []; return this }

render(): (ActionRowBuilder<StringSelectMenuBuilder> | ActionRowBuilder<ButtonBuilder>)[] {
const buttons: ButtonBuilder[] = []
Expand Down

0 comments on commit 8e7a8ba

Please sign in to comment.