Invite Resource
Invites are unique codes that allow users to join guilds or group DMs.Invite Object
Structure
Unique invite code (6-10 characters)
Invite type (see Invite Types)
Partial guild object (for guild invites)
ID of the guild
Partial channel object
ID of the channel
User who created the invite
ID of the inviter
When the invite was created
When the invite expires (null if no expiration)
Number of times the invite has been used
Maximum number of uses (0 = unlimited)
Duration in seconds before expiration (0 = never)
Whether the invite grants temporary membership
Approximate number of members in the guild
Approximate number of online members
Version for optimistic concurrency control
Example Invite
Invite Types
Invite Metadata
When retrieving invites you created, additional metadata is returned:Number of times used
Maximum number of uses
Seconds until expiration
Grants temporary membership
Creation timestamp
Vanity URL Invites
Guilds with theVANITY_URL feature can set a custom invite code:
- Never expire
- Have unlimited uses
- Can only be changed by guild admins
- Must be unique across all of Fluxer
Endpoints
Get Invite
Include approximate member counts
Include expiration timestamp
Accept Invite
Delete Invite
MANAGE_CHANNELS permission or invite ownership.
Get Channel Invites
MANAGE_CHANNELS permission.
Create Channel Invite
CREATE_INSTANT_INVITE permission.
Duration in seconds before expiration (0-604800, 0 = never)
Maximum number of uses (0-100, 0 = unlimited)
Grant temporary membership (kicked on disconnect)
Create a unique code or reuse existing with same settings
Get Guild Invites
MANAGE_GUILD permission.
Get Guild Vanity URL
Update Guild Vanity URL
MANAGE_GUILD permission and VANITY_URL feature.
New vanity code (3-32 characters, alphanumeric + hyphens)