Skip to content

Commit e49a4e5

Browse files
committed
Stricter types, add QueueItemType
1 parent 5e37481 commit e49a4e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/types.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface BotCommand {
99

1010
export interface BotEmbed {
1111
embeds: EmbedBuilder[]
12-
components?: any // ActionRowBuilder[]
12+
components?: ActionRowBuilder<any>[]
1313
}
1414

1515
export interface BotEvent {
@@ -22,14 +22,22 @@ export interface BotEvent {
2222
) => void | Promise<void>
2323
}
2424

25+
export enum QueueItemType {
26+
Default,
27+
Quick,
28+
Regenerated,
29+
Variant,
30+
Upscaled
31+
}
32+
2533
export interface QueueItem {
2634
uuid: string // Unique queue uuid
2735
seed: number // RNG
36+
type: QueueItemType
2837
messageId?: string // Discord main message snowflake ID.
2938
interaction: ChatInputCommandInteraction
3039
discordCaller: string // Snowflake of caller for command
3140
prediction: {
32-
isLegacy?: true // Was this triggered by the legacy imagine command?
3341
prompt: string // Prompt text
3442
width: number // Image size, min 64
3543
height: number // Image size, min 64

0 commit comments

Comments
 (0)