add link component

This commit is contained in:
MapleLeaf
2021-12-26 14:38:18 -06:00
parent ad482d84f8
commit 7efc7d53c9
5 changed files with 102 additions and 2 deletions

View File

@@ -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