Invite Created

Event triggerInvites

Triggers when an invite is created.

Outputs

Invite Code

The code of the invite that was created

Example: abc123

Server ID

The server where the invite was created

Example: 123456789012345678

Invite Creator User ID

The user ID of the invite creator if available

Example: 234567890123456789

Invite Creator Username

The username of the invite creator if available

Example: cooluser

Invite Uses

Current use count for the invite

Example: 0

Channel ID

The channel the invite points to

Example: 345678901234567890

Invite Max Uses

Maximum number of uses allowed for the invite

Example: 0

Invite Temporary

Whether the invite grants temporary membership

Example: false

Expires At (Unix)

When the invite expires in unix time, if any

Example: 1700000000

Invite Created At (Unix)

When the invite was created in unix time

Example: 1700000000

Build a bot using triggers like Invite Created

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

ID: invite_create

Outputs

FieldInventScript nameValue
Invite Codeinvite_codee.g. "abc123"
Server IDserver_ide.g. "123456789012345678"
Invite Creator User IDinvite_creator_user_ide.g. "234567890123456789"
Invite Creator Usernameinvite_creator_usernamee.g. "cooluser"
Invite Usesinvite_usese.g. "0"
Channel IDchannel_ide.g. "345678901234567890"
Invite Max Usesinvite_max_usese.g. "0"
Invite Temporaryinvite_temporarye.g. "false"
Expires At (Unix)expires_at_unixe.g. "1700000000"
Invite Created At (Unix)invite_created_at_unixe.g. "1700000000"

Example InventScript

var trigger = invite_create()

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

More invites triggers