Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Channel → Create Channel Invite

AI-generated

Summary

Create a Discord channel invite, optionally setting its expiry, usage limit, temporary membership, uniqueness, or voice-channel target. The request uses the configured bot token or OAuth2 user token authentication and can include an audit log reason.

Inputs

  • Authentication — Choose Bot Token (the default) or OAuth2 (User Token).
  • Channel (required) — Discord channel snowflake ID for the invite.
  • Max Age — Invite lifetime in seconds; 0 means no expiry. If omitted, Discord's default is 86400 seconds.
  • Max Uses — Maximum invite uses; 0 means unlimited.
  • Temporary — Whether the invite grants temporary membership.
  • Unique — Whether to create a unique, non-reusable invite.
  • Target Type — Voice invite target type: Stream or Embedded Application.
  • Target User ID — User whose stream the voice invite should display.
  • Target Application ID — Embedded application ID for a voice invite.
  • Audit Log Reason — Reason recorded in the Discord guild audit log; Discord limits this to 512 characters.

Output shape

A single Discord API response record containing the created invite.

The exact response fields depend on Discord's API response.

Links

Discussion