From f1b5d2770046abad01e8f40406945c9d41ac86bf Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:47 +0200 Subject: [PATCH] Update delete_slash_command.ts --- src/helpers/commands/delete_slash_command.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/helpers/commands/delete_slash_command.ts b/src/helpers/commands/delete_slash_command.ts index 0b9580e15..9f4c889d7 100644 --- a/src/helpers/commands/delete_slash_command.ts +++ b/src/helpers/commands/delete_slash_command.ts @@ -6,13 +6,11 @@ import { endpoints } from "../../util/constants.ts"; export async function deleteSlashCommand( id: string, guildId?: string, -): Promise { - const result = await rest.runMethod( +) { + return await rest.runMethod( "delete", guildId ? endpoints.COMMANDS_GUILD_ID(applicationId, guildId, id) : endpoints.COMMANDS_ID(applicationId, id), ); - - return result; }