move stuff around

This commit is contained in:
MapleLeaf
2021-12-26 22:57:17 -06:00
parent 5ed8ea059f
commit 349fff1bcb
29 changed files with 180 additions and 171 deletions

View File

@@ -0,0 +1,36 @@
import type { EmbedOptions } from "../core/components/embed-options"
export type MessageOptions = {
content: string
embeds: EmbedOptions[]
actionRows: Array<
Array<MessageButtonOptions | MessageLinkOptions | MessageSelectOptions>
>
}
export type MessageButtonOptions = {
type: "button"
customId: string
label?: string
style?: "primary" | "secondary" | "success" | "danger"
disabled?: boolean
emoji?: string
}
export type MessageLinkOptions = {
type: "link"
url: string
label?: string
emoji?: string
disabled?: boolean
}
export type MessageSelectOptions = {
type: "select"
customId: string
}
export type Message = {
edit(options: MessageOptions): Promise<void>
disableComponents(): Promise<void>
}