mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
change: prettier code
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user