From 43f06077c091a347b7b1e984e3e4486ca22be04a Mon Sep 17 00:00:00 2001 From: itohatweb Date: Sun, 14 Nov 2021 17:27:06 +0000 Subject: [PATCH] change: prettier code --- src/helpers/interactions/commands/getSlashCommand.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/interactions/commands/getSlashCommand.ts b/src/helpers/interactions/commands/getSlashCommand.ts index 36a214d95..ae8a36239 100644 --- a/src/helpers/interactions/commands/getSlashCommand.ts +++ b/src/helpers/interactions/commands/getSlashCommand.ts @@ -3,7 +3,8 @@ import type { Bot } from "../../../bot.ts"; /** Fetches the global command for the given Id. If a guildId is provided, the guild command will be fetched. */ export async function getSlashCommand(bot: Bot, commandId: bigint, guildId?: bigint) { - const result = await bot.rest.runMethod(bot.rest, + const result = await bot.rest.runMethod( + bot.rest, "get", guildId ? bot.constants.endpoints.COMMANDS_GUILD_ID(bot.applicationId, guildId, commandId)