Skip to content

Commit a6e09c8

Browse files
committed
Add note about vanity_url_code field
1 parent e7913ea commit a6e09c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/resources/Guild.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,9 @@ Returns the [widget](#DOCS_RESOURCES_GUILD/guild-widget-object) for the guild. F
12791279

12801280
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.
12811281

1282+
> info
1283+
> 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.
1284+
12821285
###### Example Partial Invite Object
12831286

12841287
```json

0 commit comments

Comments
 (0)