more comprehensive message types

This commit is contained in:
MapleLeaf
2021-12-26 11:56:03 -06:00
parent f8389cec52
commit cee63892fe

View File

@@ -3,23 +3,21 @@ import type { EmbedOptions } from "./embed/embed-options"
export type MessageOptions = {
content: string
embeds: EmbedOptions[]
actionRows: Array<
Array<
| {
actionRows: Array<Array<MessageButtonOptions | MessageSelectOptions>>
}
export type MessageButtonOptions = {
type: "button"
customId: string
label?: string
style?: "primary" | "secondary" | "success" | "danger"
disabled?: boolean
emoji?: string
}
| {
}
export type MessageSelectOptions = {
type: "select"
customId: string
// todo
}
>
>
}
export type Message = {