Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Mar 2, 2022
1 parent 7111a2f commit ffd9037
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/builders/docs/examples/Slash Command Builders.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const boopCommand = new SlashCommandBuilder()
option
.setName('boop_reminder')
.setDescription('How often should we remind you to boop the user')
.addChoices({ name: 'Every day', value: 1 }, { name: 'Weekly', value: 7 })
.addChoices({ name: 'Every day', value: 1 }, { name: 'Weekly', value: 7 }),
);

// Get the final raw data that can be sent to Discord
Expand Down Expand Up @@ -66,9 +66,9 @@ const pointsCommand = new SlashCommandBuilder()
.setName('action')
.setDescription('What action should be taken with the users points?')
.addChoices([
['Add points', 'add'],
['Remove points', 'remove'],
['Reset points', 'reset'],
{ name: 'Add points', value: 'add' },
{ name: 'Remove points', value: 'remove' },
{ name: 'Reset points', value: 'reset' },
])
.setRequired(true),
)
Expand Down

0 comments on commit ffd9037

Please sign in to comment.