diff --git a/discord/commands/commands.py b/discord/commands/commands.py index 2caa448d75..817b39e1e1 100644 --- a/discord/commands/commands.py +++ b/discord/commands/commands.py @@ -779,7 +779,7 @@ def __repr__(self): class OptionChoice: def __init__(self, name: str, value: Optional[Union[str, int, float]] = None): self.name = name - self.value = value or name + self.value = value if value is not None else name def to_dict(self) -> Dict[str, Union[str, int, float]]: return {"name": self.name, "value": self.value}