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 = { export type MessageOptions = {
content: string content: string
embeds: EmbedOptions[] embeds: EmbedOptions[]
actionRows: Array< actionRows: Array<Array<MessageButtonOptions | MessageSelectOptions>>
Array< }
| {
type: "button" export type MessageButtonOptions = {
customId: string type: "button"
label?: string customId: string
style?: "primary" | "secondary" | "success" | "danger" label?: string
disabled?: boolean style?: "primary" | "secondary" | "success" | "danger"
emoji?: string disabled?: boolean
} emoji?: string
| { }
type: "select"
customId: string export type MessageSelectOptions = {
// todo type: "select"
} customId: string
>
>
} }
export type Message = { export type Message = {