create_link_button
Function
Button that opens a URL. No event reaches the bot.
from discord_interactions import create_link_buttonSignature
def create_link_button( url: str, label: str = '', emoji: str | Dict[str, Any] | Any | None = None, disabled: bool = False,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
url | str | required | Address opened on click (512 characters max). |
label | str | '' | |
emoji | str | Dict[str, Any] | Any | None | None | |
disabled | bool | False |
Returns
Dict[str, Any]
Example
from discord_interactions import create_action_row, create_link_button lien = create_link_button("https://discord.com/developers/docs", "Documentation Discord")await ctx.respond(components=[create_action_row(lien)])