Browse Source

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.
pull/7154/head
Rapptz 4 years ago
parent
commit
9ac459b5d3
  1. 2
      discord/ui/button.py

2
discord/ui/button.py

@ -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,

Loading…
Cancel
Save