Skip to content

Commit

Permalink
made optional the button builder and the button label
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 22, 2024
1 parent a1bfe30 commit 5d08c1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export function createButton<Params extends ButtonParams>(
const button = new discord.ButtonBuilder()
.setCustomId(encodeButtonCustomId(handler.options.key, ...params))
.setStyle(discord.ButtonStyle.Primary)
.setLabel(handler.options.key)

handler.options.builder?.(button, ...params)

Expand Down

0 comments on commit 5d08c1d

Please sign in to comment.