invite := get_invite(Args{invite_code: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Invite Code: " + invite.invite_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_inviteInputs
| Field | InventScript name | Value |
|---|---|---|
| Invite Code | invite_code |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Invite Code | invite_code | |
| Server ID | server_id | |
| Channel ID | channel_id | |
| Channel Name | channel_name | |
| Invite Creator User ID | invite_creator_user_id | |
| Invite Creator Username | invite_creator_username | |
| Approximate Member Count | approximate_member_count | |
| Approximate Presence Count | approximate_presence_count | |
| Expires At (Unix) | expires_at_unix |