diff --git a/dico/model/interactions/commands.py b/dico/model/interactions/commands.py index 476e2cd..d76cf4c 100644 --- a/dico/model/interactions/commands.py +++ b/dico/model/interactions/commands.py @@ -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