Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ These changes are available on the `master` branch, but have not yet been releas

- Fixed a `TypeError` when using `Label.set_select` and not providing `default_values`.
([#3171](https://github.com/Pycord-Development/pycord/pull/3171))
- Fixed `View.from_dict()` incorrectly returning `None`.
([#3181](https://github.com/Pycord-Development/pycord/pull/3181))

### Deprecated

Expand Down
1 change: 1 addition & 0 deletions discord/ui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ def from_dict(
components = [_component_factory(d) for d in data]
for component in _walk_all_components(components):
view.add_item(_component_to_item(component))
return view

def add_item(self, item: ViewItem[V]) -> Self:
"""Adds an item to the view. Attempting to add a :class:`~discord.ui.ActionRow` will add its children instead.
Expand Down
Loading