mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
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:
@@ -118,6 +118,8 @@ export interface DiscordButtonComponent extends DiscordBaseComponent {
|
||||
*
|
||||
* @remarks
|
||||
* 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
|
||||
/** Whether or not this button is disabled */
|
||||
|
||||
@@ -178,7 +178,14 @@ export interface ButtonComponent extends BaseComponent {
|
||||
}
|
||||
/** Identifier for a purchasable SKU, only available when using premium-style buttons */
|
||||
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
|
||||
/** Whether or not this button is disabled */
|
||||
disabled?: boolean
|
||||
|
||||
Reference in New Issue
Block a user