From 2d1177290ada6d57cf032b898a44f02db9710a62 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:49 +0200 Subject: [PATCH] Update delete_slash_response.ts --- src/helpers/commands/delete_slash_response.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/helpers/commands/delete_slash_response.ts b/src/helpers/commands/delete_slash_response.ts index 14523c3a5..c0972f1cf 100644 --- a/src/helpers/commands/delete_slash_response.ts +++ b/src/helpers/commands/delete_slash_response.ts @@ -6,8 +6,8 @@ import { endpoints } from "../../util/constants.ts"; export async function deleteSlashResponse( token: string, messageId?: string, -): Promise { - const result = await rest.runMethod( +) { + return await rest.runMethod( "delete", messageId ? endpoints.INTERACTION_ID_TOKEN_MESSAGE_ID( @@ -17,6 +17,4 @@ export async function deleteSlashResponse( ) : endpoints.INTERACTION_ORIGINAL_ID_TOKEN(applicationId, token), ); - - return result; }