mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
14 lines
673 B
TypeScript
14 lines
673 B
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/helpers/discovery/remove_discovery_subcategory.ts
|
|
|
|
|
|
import { rest } from "../../rest/rest.ts";
|
|
import { endpoints } from "../../util/constants.ts";
|
|
import { requireBotGuildPermissions } from "../../util/permissions.ts";
|
|
|
|
/** Removes a discovery subcategory from the guild. Requires the MANAGE_GUILD permission. Returns a 204 No Content on success. */
|
|
export async function removeDiscoverySubcategory(guildId: bigint, categoryId: number) {
|
|
await requireBotGuildPermissions(guildId, ["MANAGE_GUILD"]);
|
|
|
|
return await rest.runMethod<undefined>("delete", endpoints.DISCOVERY_SUBCATEGORY(guildId, categoryId));
|
|
}
|