Piecewise

Build chat bots with blocks

create invite to channel (channel) probationary? (temporary) re-use similar existing invite? (not_unique) time until expiry (max_age) maximum # of uses (max_uses)

In Discord → Channels; Discord → Invites

Jump to block

Create an invite to a channel with options.

Requires the following blocks to be present in the project: discord login

Parameters

Parameter name Parameter type Required? Description
channel channel The channel to create an invite to
temporary Boolean Whether those who use this invite should be kicked after 24 hours if they do not receive a role. Defaults to FALSE.
not_unique Boolean Whether to re-use an invite with similar settings to this one, if one is available. Defaults to TRUE.
max_age time How far in the future this invite expires. Defaults to 0 (never).
max_uses Number The maximum number of times this invite can be used. Defaults to 0 (unlimited).

Output

invite - The created invite