var trigger = invite_create()
func main() {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Invite Code: " + trigger.invite_code,
})
}
Outputs
The code of the invite that was created
Example: abc123
The server where the invite was created
Example: 123456789012345678
The user ID of the invite creator if available
Example: 234567890123456789
The username of the invite creator if available
Example: cooluser
Current use count for the invite
Example: 0
The channel the invite points to
Example: 345678901234567890
Maximum number of uses allowed for the invite
Example: 0
Whether the invite grants temporary membership
Example: false
When the invite expires in unix time, if any
Example: 1700000000
When the invite was created in unix time
Example: 1700000000
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
invite_createOutputs
| Field | InventScript name | Value |
|---|---|---|
| Invite Code | invite_code | e.g. "abc123" |
| Server ID | server_id | e.g. "123456789012345678" |
| Invite Creator User ID | invite_creator_user_id | e.g. "234567890123456789" |
| Invite Creator Username | invite_creator_username | e.g. "cooluser" |
| Invite Uses | invite_uses | e.g. "0" |
| Channel ID | channel_id | e.g. "345678901234567890" |
| Invite Max Uses | invite_max_uses | e.g. "0" |
| Invite Temporary | invite_temporary | e.g. "false" |
| Expires At (Unix) | expires_at_unix | e.g. "1700000000" |
| Invite Created At (Unix) | invite_created_at_unix | e.g. "1700000000" |