Discord User icon

Discord User

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

Invite → Create Invite

AI-generated

Summary

Create a Discord channel invite

Inputs

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

Output shape

object

On success returns an object with the invite code and URL

Examples

Example 1: Create an invite for channel 123456789 with 1‑hour expiry and limited to 5 uses

Channel ID: 123456789; Max Age: 3600; Max Uses: 5

Links

Discussion