discord.createInvite create an invite to a Discord channel.
automations/discord-create-invite.automation.ts
Inputs
RequiredchannelId. Optional maxAge up to 604,800 seconds, maxUses up to 100, temporary, unique, and audit-log reason. Optional second argument { account } selects the Discord binding.
Output
Returns the createdDiscordInvite.
Discord behavior
RequiresCREATE_INSTANT_INVITE; unique: false may reuse a matching invite.