mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix DynamicItem row attribute being overridden
This commit is contained in:
parent
078b500657
commit
de6a6af5d3
@ -104,7 +104,8 @@ class DynamicItem(Generic[BaseT], Item['View']):
|
|||||||
) -> None:
|
) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.item: BaseT = item
|
self.item: BaseT = item
|
||||||
self.row = row
|
if row is not None:
|
||||||
|
self.row = row
|
||||||
|
|
||||||
if not self.item.is_dispatchable():
|
if not self.item.is_dispatchable():
|
||||||
raise TypeError('item must be dispatchable, e.g. not a URL button')
|
raise TypeError('item must be dispatchable, e.g. not a URL button')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user