add link component
This commit is contained in:
@@ -3,7 +3,9 @@ import type { EmbedOptions } from "./embed/embed-options"
|
||||
export type MessageOptions = {
|
||||
content: string
|
||||
embeds: EmbedOptions[]
|
||||
actionRows: Array<Array<MessageButtonOptions | MessageSelectOptions>>
|
||||
actionRows: Array<
|
||||
Array<MessageButtonOptions | MessageLinkOptions | MessageSelectOptions>
|
||||
>
|
||||
}
|
||||
|
||||
export type MessageButtonOptions = {
|
||||
@@ -15,6 +17,14 @@ export type MessageButtonOptions = {
|
||||
emoji?: string
|
||||
}
|
||||
|
||||
export type MessageLinkOptions = {
|
||||
type: "link"
|
||||
url: string
|
||||
label?: string
|
||||
emoji?: string
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
export type MessageSelectOptions = {
|
||||
type: "select"
|
||||
customId: string
|
||||
|
||||
Reference in New Issue
Block a user