Skip to content

Commit

Permalink
feat(Guild): add nsfw property (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu authored Apr 14, 2021
1 parent 6451679 commit 21b572b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deno/payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,18 @@ export interface APIGuild extends APIPartialGuild {
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
*/
approximate_presence_count?: number;
/**
* The welcome screen of a Community guild, shown to new members
*
* Returned in the invite object
*/
welcome_screen?: APIGuildWelcomeScreen;
/**
* `true` if this guild is designated as NSFW
*
* See https://support.discord.com/hc/en-us/articles/1500005389362-NSFW-Server-Designation
*/
nsfw: boolean;
}

/**
Expand Down
11 changes: 11 additions & 0 deletions payloads/v8/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,18 @@ export interface APIGuild extends APIPartialGuild {
* **This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the `with_counts` query parameter set to `true`**
*/
approximate_presence_count?: number;
/**
* The welcome screen of a Community guild, shown to new members
*
* Returned in the invite object
*/
welcome_screen?: APIGuildWelcomeScreen;
/**
* `true` if this guild is designated as NSFW
*
* See https://support.discord.com/hc/en-us/articles/1500005389362-NSFW-Server-Designation
*/
nsfw: boolean;
}

/**
Expand Down

0 comments on commit 21b572b

Please sign in to comment.