mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix DynamicItem row attribute being overridden
This commit is contained in:
1 parent
078b500657
commit
de6a6af5d3
1 file changed
+2
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user