File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def add_button(
178178 emoji : str | GuildEmoji | AppEmoji | PartialEmoji | None = None ,
179179 sku_id : int | None = None ,
180180 id : int | None = None ,
181- priority : int | None = None
181+ priority : int | None = None ,
182182 ) -> Self :
183183 """Adds a :class:`Button` to the action row.
184184
@@ -219,7 +219,7 @@ def add_button(
219219 emoji = emoji ,
220220 sku_id = sku_id ,
221221 id = id ,
222- priority = priority
222+ priority = priority ,
223223 )
224224
225225 return self .add_item (button )
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ def decorator(func: ItemCallbackType) -> ItemCallbackType:
363363 "emoji" : emoji ,
364364 "row" : row ,
365365 "id" : id ,
366- "priority" : priority
366+ "priority" : priority ,
367367 }
368368 return func
369369
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ def __init_subclass__(cls) -> None:
6969 for base in reversed (cls .__mro__ ):
7070 for member in base .__dict__ .values ():
7171 if hasattr (member , "__discord_ui_model_type__" ):
72- raise ValueError ("The @button and @select decorators are incompatible with Container. Use ActionRow instead." )
72+ raise ValueError (
73+ "The @button and @select decorators are incompatible with Container. Use ActionRow instead."
74+ )
7375
7476 def __init__ (
7577 self ,
Original file line number Diff line number Diff line change @@ -786,7 +786,9 @@ def __init_subclass__(cls) -> None:
786786 for base in reversed (cls .__mro__ ):
787787 for member in base .__dict__ .values ():
788788 if hasattr (member , "__discord_ui_model_type__" ):
789- raise ValueError ("The @button and @select decorators are incompatible with DesignerView. Use ActionRow instead." )
789+ raise ValueError (
790+ "The @button and @select decorators are incompatible with DesignerView. Use ActionRow instead."
791+ )
790792
791793 def __init__ (
792794 self ,
You can’t perform that action at this time.
0 commit comments