Skip to content

Commit bb30463

Browse files
authored
Fix command dispatching for falsey arguments
1 parent b1aef75 commit bb30463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/api/gateway/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def _check_auto(option: dict) -> Optional[Tuple[str]]:
465465
# sub_command_groups must have options so there is no extra check needed for those
466466
__kwargs["sub_command"] = _data["name"]
467467

468-
elif _data.get("value") and _data.get("name"):
468+
elif _data.get("value") is not None and _data.get("name") is not None:
469469
__kwargs[_data["name"]] = _data["value"]
470470

471471
return __kwargs

0 commit comments

Comments
 (0)