Skip to content

Commit

Permalink
fix(discord): confuse of required argument (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
yhx-12243 committed May 14, 2024
1 parent 28d8629 commit 48bdc78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/discord/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export function encodeCommandOptions(cmd: Universal.Command): Discord.Applicatio
...encodeDescription(option),
name: option.name.toLowerCase(),
type: types[option.type] ?? types.text,
required: option.required ?? false,
required: false,
min_value: option.type === 'posint' ? 1 : undefined,
})
}
Expand Down

0 comments on commit 48bdc78

Please sign in to comment.