Skip to content

Commit

Permalink
fix: make version to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Dec 19, 2023
1 parent 31dcd53 commit d5b5282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dico/model/interactions/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(
self.dm_permission = dm_permission
self.default_permission: bool = default_permission
self.nsfw: typing.Optional[bool] = nsfw
self.version: Snowflake = Snowflake(resp["version"])
self.version: Snowflake = Snowflake.optional(resp.get("version"))

self.__command_creation = not resp

Expand Down

0 comments on commit d5b5282

Please sign in to comment.