mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
8 lines
397 B
TypeScript
8 lines
397 B
TypeScript
import type { InviteMetadata } from "../../types/invites/inviteMetadata.ts";
|
|
import type { Bot } from "../../bot.ts";
|
|
|
|
/** Deletes an invite for the given code. Requires `MANAGE_CHANNELS` or `MANAGE_GUILD` permission */
|
|
export async function deleteInvite(bot: Bot, inviteCode: string) {
|
|
await bot.rest.runMethod<InviteMetadata>(bot.rest, "delete", bot.constants.endpoints.INVITE(inviteCode));
|
|
}
|