mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Add a default style for buttons
This makes it easier to create URL buttons since the library will automatically assign the proper style for it.
This commit is contained in:
@@ -87,7 +87,7 @@ class Button(Item[V]):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
style: ButtonStyle,
|
style: ButtonStyle = ButtonStyle.primary,
|
||||||
label: Optional[str] = None,
|
label: Optional[str] = None,
|
||||||
disabled: bool = False,
|
disabled: bool = False,
|
||||||
custom_id: Optional[str] = None,
|
custom_id: Optional[str] = None,
|
||||||
|
Reference in New Issue
Block a user