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,