From 5e96ad9261048507044c3bed0b6768f31d3c85d5 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 28 Apr 2021 01:48:39 -0400 Subject: [PATCH] Force button style to link if a URL is passed --- discord/ui/button.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/ui/button.py b/discord/ui/button.py index b81266aaf..8d2082579 100644 --- a/discord/ui/button.py +++ b/discord/ui/button.py @@ -115,6 +115,9 @@ class Button(Item[V]): if url is None and custom_id is None: custom_id = os.urandom(16).hex() + if url is not None: + style = ButtonStyle.link + self._underlying = ButtonComponent._raw_construct( type=ComponentType.button, custom_id=custom_id,