more comprehensive message types
This commit is contained in:
@@ -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<
|
}
|
||||||
| {
|
|
||||||
|
export type MessageButtonOptions = {
|
||||||
type: "button"
|
type: "button"
|
||||||
customId: string
|
customId: string
|
||||||
label?: string
|
label?: string
|
||||||
style?: "primary" | "secondary" | "success" | "danger"
|
style?: "primary" | "secondary" | "success" | "danger"
|
||||||
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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user