Skip to content

Commit f5db60e

Browse files
committed
fix: View.from_dict() missing return statement
1 parent db18056 commit f5db60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord/ui/view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ def from_dict(
701701
components = [_component_factory(d) for d in data]
702702
for component in _walk_all_components(components):
703703
view.add_item(_component_to_item(component))
704+
return view
704705

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

0 commit comments

Comments
 (0)