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,9 +3,10 @@ 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< }
| {
export type MessageButtonOptions = {
type: "button" type: "button"
customId: string customId: string
label?: string label?: string
@@ -13,13 +14,10 @@ export type MessageOptions = {
disabled?: boolean disabled?: boolean
emoji?: string emoji?: string
} }
| {
export type MessageSelectOptions = {
type: "select" type: "select"
customId: string customId: string
// todo
}
>
>
} }
export type Message = { export type Message = {