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:
Rapptz 2021-07-01 20:45:38 -04:00
parent 4f0e907e44
commit 9ac459b5d3

View File

@ -87,7 +87,7 @@ class Button(Item[V]):
def __init__(
self,
*,
style: ButtonStyle,
style: ButtonStyle = ButtonStyle.primary,
label: Optional[str] = None,
disabled: bool = False,
custom_id: Optional[str] = None,