Get Server Vanity URL

BlockServers

Retrieve a server's vanity invite URL.

Inputs

Server IDRequired

ID of the server to retrieve the vanity URL for.

Outputs

Vanity URL Code

Invite code used by the server's vanity URL.

Vanity URL

Full vanity invite URL for the server.

Uses

Number of recorded uses for the vanity URL.

Example: 42

Build a bot using blocks like Get Server Vanity URL

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_discord_guild_vanity_url

Inputs

FieldInventScript nameValue
Server IDserver_id

Outputs

FieldInventScript nameValue
Vanity URL Codevanity_url_code
Vanity URLvanity_url
Usesusese.g. "42"

Example InventScript

guildVanityUrl := get_discord_guild_vanity_url(Args{server_id: trigger.server_id})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Vanity URL Code: " + guildVanityUrl.vanity_url_code,
})

More servers blocks