From f47c3f9c7f40b596ba4e4ba033fea744fac148a5 Mon Sep 17 00:00:00 2001 From: Dominic Ruggiero Date: Wed, 8 Jan 2025 07:22:47 -0500 Subject: [PATCH] fix editing orders to rejected packed and delivering --- src/modules/edit-order.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/edit-order.ts b/src/modules/edit-order.ts index 01b0e38..8a2de77 100644 --- a/src/modules/edit-order.ts +++ b/src/modules/edit-order.ts @@ -292,7 +292,7 @@ messagesClient.registerButton( ]), ]); await interaction.showModal(modal); - bot.registerModal(modalId, async (interaction) => { + messagesClient.registerModal(modalId, async (interaction) => { const content = interaction.fields.getTextInputValue("content"); if (status == orderStatus.REJECTED) { await updateOrderStatus({