Update delete_slash_response.ts

This commit is contained in:
ITOH
2021-04-23 23:27:49 +02:00
parent f1b5d27700
commit 2d1177290a

View File

@@ -6,8 +6,8 @@ import { endpoints } from "../../util/constants.ts";
export async function deleteSlashResponse(
token: string,
messageId?: string,
): Promise<undefined> {
const result = await rest.runMethod(
) {
return await rest.runMethod<undefined>(
"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;
}