mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
f
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { applicationId } from "../../bot.ts";
|
||||
import { rest } from "../../rest/rest.ts";
|
||||
import { ApplicationCommand } from "../../types/interactions/application_command.ts";
|
||||
import { endpoints } from "../../util/constants.ts";
|
||||
|
||||
/** Fetchs the global command for the given Id. If a guildId is provided, the guild command will be fetched. */
|
||||
@@ -11,5 +12,5 @@ export async function getSlashCommand(commandId: string, guildId?: string) {
|
||||
: endpoints.COMMANDS_ID(applicationId, commandId),
|
||||
);
|
||||
|
||||
return result as SlashCommand;
|
||||
return result as ApplicationCommand;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user