Guilds

Update guild vanity URL

Requires manage_guild permission. Sets or removes a custom invite code.

patch/guilds/{guild_id}/vanity-url

Path parameters

guild_idstring snowflake required

The ID of the guild

Request body

codestring nullable

The new vanity URL code (2-32 characters, alphanumeric and hyphens)

Response

Success

codestring nullable required

The new vanity URL code, or null when the vanity URL was removed

Changes

No recorded changes to this endpoint across all 1 revision of this API.