mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 04:17:16 +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:
|
||||
super().__init__()
|
||||
self.item: BaseT = item
|
||||
self.row = row
|
||||
if row is not None:
|
||||
self.row = row
|
||||
|
||||
if not self.item.is_dispatchable():
|
||||
raise TypeError('item must be dispatchable, e.g. not a URL button')
|
||||
|
Loading…
x
Reference in New Issue
Block a user