# Invite Created

> Triggers when an invite is created.

- ID: `invite_create`
- Type: Event trigger
- Category: [Invites](https://inventor.bot/docs/reference/triggers/invites.md)

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `invite_code` | The code of the invite that was created | e.g. `"abc123"` |
| `server_id` | The server where the invite was created | e.g. `"123456789012345678"` |
| `invite_creator_user_id` | The user ID of the invite creator if available | e.g. `"234567890123456789"` |
| `invite_creator_username` | The username of the invite creator if available | e.g. `"cooluser"` |
| `invite_uses` | Current use count for the invite | e.g. `"0"` |
| `channel_id` | The channel the invite points to | e.g. `"345678901234567890"` |
| `invite_max_uses` | Maximum number of uses allowed for the invite | e.g. `"0"` |
| `invite_temporary` | Whether the invite grants temporary membership | e.g. `"false"` |
| `expires_at_unix` | When the invite expires in unix time, if any | e.g. `"1700000000"` |
| `invite_created_at_unix` | When the invite was created in unix time | e.g. `"1700000000"` |

**Example**

```go
var trigger = invite_create()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Invite Code: " + trigger.invite_code,
	})
}
```