mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-18 20:14:42 +00:00
Fix Section.accessory setter not updating view bindings
This commit is contained in:
@@ -117,6 +117,7 @@ class Section(Item[V]):
|
|||||||
if not isinstance(value, Item):
|
if not isinstance(value, Item):
|
||||||
raise TypeError(f'Expected an Item, got {value.__class__.__name__!r} instead')
|
raise TypeError(f'Expected an Item, got {value.__class__.__name__!r} instead')
|
||||||
|
|
||||||
|
value._update_view(self.view)
|
||||||
value._parent = self
|
value._parent = self
|
||||||
self._accessory = value
|
self._accessory = value
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user