Represents a code that when used, adds a user to a guild or group DM.
| Property | Type | Description |
|---|---|---|
| approximate_member_count | Integer | Approximate count of total members |
| approximate_presence_count | Integer | Approximate count of online members |
| channel | Channel | The channel this invite is for |
| code | String | The invite code (unique ID) |
| created_at | String | When this invite was created (invite metadata) |
| expires_at | String | The expiration date of this invite |
| flags | Integer | Guild invite flags |
| guild | Guild | The guild this invite is for |
| inviter | User | The user who created the invite |
| max_age | Integer | Duration (in seconds) after which the invite expires (invite metadata) |
| max_uses | Integer | Max number of times this invite can be used (invite metadata) |
| target_type | Integer | The type of target for this voice channel invite |
| target_user | User | The user whose stream to display for this invite |
| temporary | Boolean | Whether this invite only grants temporary membership (invite metadata) |
| type | Integer | The type of invite (0 GUILD, 1 GROUP_DM, 2 FRIEND) |
| uses | Integer | Number of times this invite has been used (invite metadata) |