Discord User icon

Discord User

Complete Discord automation - Messages, Servers, Roles, Members, DMs

Invite → Create Invite

AI-generated

Summary

Create an invite for a Discord channel.

Inputs

  • channelId (required) — ID of the channel to create the invite for.
  • maxAge — Time in seconds before the invite expires (0 = never). Default: 86400.
  • maxUses — Maximum number of uses (0 = unlimited). Default: 0.

Output shape

single object

Returns the invite code and URL. If the channel is not found or lacks createInvite permission, no output is produced.

Discussion