mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Force button style to link if a URL is passed
This commit is contained in:
parent
80fd222ca0
commit
5e96ad9261
@ -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…
x
Reference in New Issue
Block a user