guild_get_vanity_url
Retrieve a Discord guild's custom vanity URL invite code and its usage count. Use it to display the configured discord.gg shortcut and track how often it has been used.
Instructions
Purpose: Get the guild vanity URL invite (Community/Partner perk).
When to use:
Display the configured
discord.gg/<code>shortcut and how many times it has been used.
Returns: {code, uses}. code is null if no vanity URL is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Guild to query |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||