From 759a304a43ac5517f47b7c5920cf845dc759324f Mon Sep 17 00:00:00 2001 From: advaith Date: Fri, 24 Jan 2025 11:20:42 -0800 Subject: [PATCH] Add note about `vanity_url_code` field (#7355) --- docs/resources/Guild.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/resources/Guild.md b/docs/resources/Guild.md index 299293e402..b98f575cd0 100644 --- a/docs/resources/Guild.md +++ b/docs/resources/Guild.md @@ -1300,6 +1300,9 @@ Returns the [widget](#DOCS_RESOURCES_GUILD/guild-widget-object) for the guild. F Returns a partial [invite](#DOCS_RESOURCES_INVITE/invite-object) object for guilds with that feature enabled. Requires the `MANAGE_GUILD` permission. `code` will be null if a vanity url for the guild is not set. +> info +> This endpoint is required to get the usage count of the vanity invite, but the invite code can be accessed as `vanity_url_code` in the [guild object](#DOCS_RESOURCES_GUILD/guild-object) without having the `MANAGE_GUILD` permission. + ###### Example Partial Invite Object ```json