Skip to content

Commit 4047a59

Browse files
committed
last minute img2img fix before presentation! YAY! Who doesnt love some pressure?!
1 parent 8942372 commit 4047a59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/commands/img2img/Img2ImgCommand.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ fun img2imgCommand(jda: JDA) {
3535
50
3636
}
3737

38+
event.deferReply().queue()
39+
3840
var batch = (0 until config.hostConstraints.totalImagesInMakeCommand).map {
3941
val initialParams = optionsToStableDiffusionParams(event, it)
4042
initialParams.copy(
@@ -53,7 +55,7 @@ fun img2imgCommand(jda: JDA) {
5355
event.hook,
5456
null
5557
)
56-
event.reply_(queueDispatcher.queue.addToQueue(entry)).queue()
58+
event.hook.editOriginal(queueDispatcher.queue.addToQueue(entry)).queue()
5759
} catch (e: Exception) {
5860
e.printStackTrace()
5961
event.reply_("Error! $e").setEphemeral(true).queue()

0 commit comments

Comments
 (0)