mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Update delete_slash_command.ts
This commit is contained in:
@@ -6,13 +6,11 @@ import { endpoints } from "../../util/constants.ts";
|
|||||||
export async function deleteSlashCommand(
|
export async function deleteSlashCommand(
|
||||||
id: string,
|
id: string,
|
||||||
guildId?: string,
|
guildId?: string,
|
||||||
): Promise<undefined> {
|
) {
|
||||||
const result = await rest.runMethod(
|
return await rest.runMethod<undefined>(
|
||||||
"delete",
|
"delete",
|
||||||
guildId
|
guildId
|
||||||
? endpoints.COMMANDS_GUILD_ID(applicationId, guildId, id)
|
? endpoints.COMMANDS_GUILD_ID(applicationId, guildId, id)
|
||||||
: endpoints.COMMANDS_ID(applicationId, id),
|
: endpoints.COMMANDS_ID(applicationId, id),
|
||||||
);
|
);
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user