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(
178
178
emoji : str | GuildEmoji | AppEmoji | PartialEmoji | None = None ,
179
179
sku_id : int | None = None ,
180
180
id : int | None = None ,
181
- priority : int | None = None
181
+ priority : int | None = None ,
182
182
) -> Self :
183
183
"""Adds a :class:`Button` to the action row.
184
184
@@ -219,7 +219,7 @@ def add_button(
219
219
emoji = emoji ,
220
220
sku_id = sku_id ,
221
221
id = id ,
222
- priority = priority
222
+ priority = priority ,
223
223
)
224
224
225
225
return self .add_item (button )
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ def decorator(func: ItemCallbackType) -> ItemCallbackType:
363
363
"emoji" : emoji ,
364
364
"row" : row ,
365
365
"id" : id ,
366
- "priority" : priority
366
+ "priority" : priority ,
367
367
}
368
368
return func
369
369
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ def __init_subclass__(cls) -> None:
69
69
for base in reversed (cls .__mro__ ):
70
70
for member in base .__dict__ .values ():
71
71
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
+ )
73
75
74
76
def __init__ (
75
77
self ,
Original file line number Diff line number Diff line change @@ -786,7 +786,9 @@ def __init_subclass__(cls) -> None:
786
786
for base in reversed (cls .__mro__ ):
787
787
for member in base .__dict__ .values ():
788
788
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
+ )
790
792
791
793
def __init__ (
792
794
self ,
You can’t perform that action at this time.
0 commit comments