Create Invite
Create an invite for a channel.
Inputs
Channel ID
ID of the channel to create the invite for.
Max Uses
Maximum number of times the invite can be used. Set to 0 or leave blank for unlimited.
Temporary
Whether the invite is temporary. Set to true for the invite to be temporary.
Expires After (Seconds)
Number of seconds until the invite expires. Set to 0 for never, or leave blank for default (7 days).
Outputs
Invite Code
The invite code. This is the part after discord.gg/.
Example: ntcSNCjqWr
Server ID
The ID of the server that the invite is in.
Example: 123456789012345678
Channel ID
The ID of the channel that the invite is for.
Example: 123456789012345678
Channel Name
The name of the channel that the invite is for.
Example: general
Invite Creator User ID
The ID of the user who created the invite.
Example: 123456789012345678
Invite Creator Username
The username of the user who created the invite.
Example: super_cool_user
Invite Uses
The total amount of times this invite has been used.
Example: 4
Invite Max Uses
The maximum amount of times this invite can be used. The block will return 0
if it has unlimited uses.
Example: 3
or 0
(unlimited)
Invite Temporary
Whether or not the invite grants a temporary membership. A temporary membership is one that will kick the user after they log off if they are not assigned a role.
Example: true
or false
Expires At (Unix)
The Unix timestamp when the invite will expire. The block will return 0
if it will not expire.
Example: 1731886315
or 0
(never)
Invite Created At (Unix)
The Unix timestamp when the invite was created.
Example: 1731886315