From 9831ccf76e259e79f52a8bd3e385cd6cb3cb65ce Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:51 +0200 Subject: [PATCH] Update edit_slash_response.ts --- src/helpers/commands/edit_slash_response.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/commands/edit_slash_response.ts b/src/helpers/commands/edit_slash_response.ts index 099b61b30..e046c8e9f 100644 --- a/src/helpers/commands/edit_slash_response.ts +++ b/src/helpers/commands/edit_slash_response.ts @@ -69,7 +69,7 @@ export async function editSlashResponse( ); // If the original message was edited, this will not return a message - if (!options.messageId) return result; + if (!options.messageId) return result as undefined; const message = await structures.createDiscordenoMessage( result as DiscordMessage,