move stuff around until it feels right

This commit is contained in:
MapleLeaf
2021-12-26 12:06:06 -06:00
parent d10618e3c1
commit 894e6abb26
35 changed files with 30 additions and 22 deletions

29
library/interaction.ts Normal file
View File

@@ -0,0 +1,29 @@
import type { Message, MessageOptions } from "./message"
export type Interaction = CommandInteraction | ComponentInteraction
export type CommandInteraction = {
type: "command"
id: string
channelId: string
reply(messageOptions: MessageOptions): Promise<Message>
followUp(messageOptions: MessageOptions): Promise<Message>
}
export type ComponentInteraction = ButtonInteraction | SelectInteraction
export type ButtonInteraction = {
type: "button"
id: string
channelId: string
customId: string
update(options: MessageOptions): Promise<void>
}
export type SelectInteraction = {
type: "select"
id: string
channelId: string
customId: string
update(options: MessageOptions): Promise<void>
}