From 7dd33bd946cc0df5de3b946ce9494165adfc1af9 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:28:08 +0700 Subject: [PATCH] fix: Modal reply --- src/structures/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Modal.js b/src/structures/Modal.js index 9d76c86..779762f 100644 --- a/src/structures/Modal.js +++ b/src/structures/Modal.js @@ -122,7 +122,7 @@ class Modal { }; return c; }) - .filter(c => c.components[0].value && c.components[0].value !== ''); + .filter(c => typeof c.components[0].value == 'string'); delete dataFinal.title; const nonce = SnowflakeUtil.generate(); const postData = {