change: prettier code

This commit is contained in:
itohatweb
2021-11-14 17:27:06 +00:00
committed by GitHub Action
parent 9b6ba5ee90
commit 43f06077c0
@@ -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. */ /** 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) { export async function getSlashCommand(bot: Bot, commandId: bigint, guildId?: bigint) {
const result = await bot.rest.runMethod<ApplicationCommand>(bot.rest, const result = await bot.rest.runMethod<ApplicationCommand>(
bot.rest,
"get", "get",
guildId guildId
? bot.constants.endpoints.COMMANDS_GUILD_ID(bot.applicationId, guildId, commandId) ? bot.constants.endpoints.COMMANDS_GUILD_ID(bot.applicationId, guildId, commandId)