discord.deleteInvite revoke a Discord invite by code.
automations/discord-delete-invite.automation.ts
Inputs
Required invitecode; optional audit-log reason. Optional second argument { account } selects the Discord binding.
Output
Returns the revokedDiscordInvite.
Discord behavior
RequiresMANAGE_CHANNELS for the invite’s channel or MANAGE_GUILD.