Files
discordeno/helpers/integrations/deleteIntegration.ts
2022-02-11 09:49:53 +00:00

7 lines
348 B
TypeScript

import type { Bot } from "../../bot.ts";
/** Delete the attached integration object for the guild with this id. Requires MANAGE_GUILD permission. */
export async function deleteIntegration(bot: Bot, guildId: bigint, id: bigint) {
await bot.rest.runMethod<undefined>(bot.rest, "delete", bot.constants.endpoints.GUILD_INTEGRATION(guildId, id));
}