# Get Server Vanity URL

> Retrieve a server's vanity invite URL.

- ID: `get_discord_guild_vanity_url`
- Type: Block
- Category: [Servers](https://inventor.bot/docs/reference/blocks/servers.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | ID of the server to retrieve the vanity URL for. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `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. | e.g. `"42"` |

**Example**

```go
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,
})
```