Skip to content

Commit

Permalink
Fix default required flag being False for application options
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Sep 1, 2023
1 parent 63e1024 commit da5bdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novus/models/application_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _from_data(cls, data: payloads.ApplicationCommandOption) -> Self:
type=ApplicationOptionType(data["type"]),
name_localizations=data.get("name_localizations"),
description_localizations=data.get("description_localizations"),
required=data.get("required", True),
required=data.get("required", False),
choices=[
ApplicationCommandChoice(**d)
for d in data.get("choices") or []
Expand Down

0 comments on commit da5bdce

Please sign in to comment.