Skip to content

Commit

Permalink
fix(ApplicationCommand): default option.required fix (#5848)
Browse files Browse the repository at this point in the history
  • Loading branch information
muchnameless committed Jun 14, 2021
1 parent 1ac9a2e commit a1f94f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ApplicationCommand.js
Expand Up @@ -216,7 +216,7 @@ class ApplicationCommand extends Base {
name: option.name,
description: option.description,
required:
option.required ?? (stringType === 'SUB_COMMAND' || stringType === 'SUB_COMMAND_GROUP') ? undefined : false,
option.required ?? (stringType === 'SUB_COMMAND' || stringType === 'SUB_COMMAND_GROUP' ? undefined : false),
choices: option.choices,
options: option.options?.map(o => this.transformOption(o, received)),
};
Expand Down

0 comments on commit a1f94f6

Please sign in to comment.