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; }