api-docs: Add max of 512 chars on button links (#4262)

* Add max of 512 chars for button urls

* Update packages/types/src/discordeno.ts

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
This commit is contained in:
Fleny
2025-07-28 08:38:51 +02:00
committed by GitHub
co-authored by Link
parent e162543cec
commit 39279466ce
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -118,6 +118,8 @@ export interface DiscordButtonComponent extends DiscordBaseComponent {
* *
* @remarks * @remarks
* Buttons of style {@link ButtonStyles.Link | Link} must have an url, any other button with a different style can not have an url * Buttons of style {@link ButtonStyles.Link | Link} must have an url, any other button with a different style can not have an url
*
* Maximum 512 characters.
*/ */
url?: string url?: string
/** Whether or not this button is disabled */ /** Whether or not this button is disabled */
+8 -1
View File
@@ -178,7 +178,14 @@ export interface ButtonComponent extends BaseComponent {
} }
/** Identifier for a purchasable SKU, only available when using premium-style buttons */ /** Identifier for a purchasable SKU, only available when using premium-style buttons */
skuId?: BigString skuId?: BigString
/** optional url for link-style buttons that can navigate a user to the web. Only type 5 Link buttons can have a url */ /**
* optional url for link-style buttons that can navigate a user to the web.
*
* @remarks
* Only {@link ButtonStyles.Link | Link} buttons can have a url.
*
* Maximum 512 characters.
*/
url?: string url?: string
/** Whether or not this button is disabled */ /** Whether or not this button is disabled */
disabled?: boolean disabled?: boolean