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)