Get Invite Details
Get Invite Details looks up one invite: its uses, who made it, when it ends, and how many joins it brought. Use it for an /inviteinfo command, to check links members post, or to see how a campaign link is doing. The Invite Tracker module's /invites code is built on it.
Which invite
- Invite code or link: a code like
abc123, or a link likediscord.gg/abc123. Variables work, like{option_invite}.
The bot needs Manage Server to see how often an invite was used. Another server's invite only gives its public details.
Variables
| Variable | What it gives |
|---|---|
{invite_info_code} |
The invite code |
{invite_info_url} |
The full link, like https://discord.gg/abc123 |
{invite_info_uses} |
How many times it was used |
{invite_info_max_uses} |
Its most uses, 0 for no limit |
{invite_info_inviter_id} |
Who made it |
{invite_info_channel_id} |
The channel it opens |
{invite_info_created_at} |
When it was made, as a Discord timestamp |
{invite_info_expires_at} |
When it ends, as a Discord timestamp, or never |
{invite_info_temporary} |
true when it gives temporary membership |
{invite_info_roles} |
The roles it gives, as IDs with commas |
{invite_info_server_id} |
The server it's for |
{invite_info_counts_for} |
The member or campaign it counts for, when the bot made it with Who it counts for |
{invite_info_joins} |
Joins through it the bot has counted |
{invite_info_here} |
Of those, how many are still in the server |
{invite_info_left} |
Of those, how many left |
{invite_info_fake} |
Of those, how many were fake |
The last four come from the invite record Change Invite Counts keeps.
When it fails
It goes down its error path, with the reason in {error_reason}, when:
- It isn't an invite code ("That isn't an invite code. Use a code like abc123, or a link like discord.gg/abc123").
- The invite doesn't exist or has expired.
- It's this server's invite and the bot doesn't have Manage Server ("The bot needs Manage Server to see how often it was used").
Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. The green path on the bottom left side of the block runs when it works, and the red path on the bottom right side runs when it fails. The error variables are listed here.