Get Invite

BlockInvites

Retrieve an invite's information by its code.

Inputs

Invite CodeRequired

Code of the invite to retrieve.

Outputs

Invite Code

Code of the invite.

Server ID

ID of the server for the invite.

Channel ID

ID of the channel for the invite.

Channel Name

Name of the channel.

Invite Creator User ID

User ID of the invite creator.

Invite Creator Username

Username of the invite creator.

Approximate Member Count

Approximate member count for the server.

Approximate Presence Count

Approximate online member count for the server.

Expires At (Unix)

Unix timestamp when the invite expires.

Build a bot using blocks like Get Invite

Use this block 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: get_invite

Inputs

FieldInventScript nameValue
Invite Codeinvite_code

Outputs

FieldInventScript nameValue
Invite Codeinvite_code
Server IDserver_id
Channel IDchannel_id
Channel Namechannel_name
Invite Creator User IDinvite_creator_user_id
Invite Creator Usernameinvite_creator_username
Approximate Member Countapproximate_member_count
Approximate Presence Countapproximate_presence_count
Expires At (Unix)expires_at_unix

Example InventScript

invite := get_invite(Args{invite_code: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Invite Code: " + invite.invite_code,
})

More invites blocks