Browse Source

Force button style to link if a URL is passed

pull/6961/head
Rapptz 4 years ago
parent
commit
5e96ad9261
  1. 3
      discord/ui/button.py

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

Loading…
Cancel
Save