From 9ac459b5d3b2f34e7a4d71d33a56bf3d31b9423c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 1 Jul 2021 20:45:38 -0400 Subject: [PATCH] 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. --- discord/ui/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ui/button.py b/discord/ui/button.py index 0f6ab9ee9..9c0c18904 100644 --- a/discord/ui/button.py +++ b/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,