move stuff around
This commit is contained in:
36
library/internal/message.ts
Normal file
36
library/internal/message.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import type { EmbedOptions } from "../core/components/embed-options"
|
||||
|
||||
export type MessageOptions = {
|
||||
content: string
|
||||
embeds: EmbedOptions[]
|
||||
actionRows: Array<
|
||||
Array<MessageButtonOptions | MessageLinkOptions | MessageSelectOptions>
|
||||
>
|
||||
}
|
||||
|
||||
export type MessageButtonOptions = {
|
||||
type: "button"
|
||||
customId: string
|
||||
label?: string
|
||||
style?: "primary" | "secondary" | "success" | "danger"
|
||||
disabled?: boolean
|
||||
emoji?: string
|
||||
}
|
||||
|
||||
export type MessageLinkOptions = {
|
||||
type: "link"
|
||||
url: string
|
||||
label?: string
|
||||
emoji?: string
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
export type MessageSelectOptions = {
|
||||
type: "select"
|
||||
customId: string
|
||||
}
|
||||
|
||||
export type Message = {
|
||||
edit(options: MessageOptions): Promise<void>
|
||||
disableComponents(): Promise<void>
|
||||
}
|
||||
Reference in New Issue
Block a user