Skip to content

Commit

Permalink
Add note about vanity_url_code field (#7355)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored Jan 24, 2025
1 parent 9ce6dfc commit 759a304
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/resources/Guild.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 759a304

Please sign in to comment.