more comprehensive message types
This commit is contained in:
@@ -3,9 +3,10 @@ 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
|
||||
@@ -13,13 +14,10 @@ export type MessageOptions = {
|
||||
disabled?: boolean
|
||||
emoji?: string
|
||||
}
|
||||
| {
|
||||
|
||||
export type MessageSelectOptions = {
|
||||
type: "select"
|
||||
customId: string
|
||||
// todo
|
||||
}
|
||||
>
|
||||
>
|
||||
}
|
||||
|
||||
export type Message = {
|
||||
|
||||
Reference in New Issue
Block a user