mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
Merge branch 'mmmmm' of https://github.com/discordeno/discordeno into mmmmm
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. */
|
||||
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",
|
||||
guildId
|
||||
? bot.constants.endpoints.COMMANDS_GUILD_ID(bot.applicationId, guildId, commandId)
|
||||
|
||||
Reference in New Issue
Block a user